初学MapX,请问如何画圆形区域?(100分)

  • 主题发起人 主题发起人 枪手哈特
  • 开始时间 开始时间

枪手哈特

Unregistered / Unconfirmed
GUEST, unregistred user!
利用mapx画图时,画线时使用createline,画圆形区域时使用哪个方法?参数如何给出?
 
难道做gis的高手都不来了?
 
我这里有这些资料,不知对你是否有用
http://www.yesky.com/20011126/206826.shtml
http://www.vchelp.net/itbookreview/view_paper.asp?paper_id=713
http://www.gisempire.com/bbs/
 
http://www.csdn.net/dev/delphi/Samples/primscr.zip
成3D几何面的例子,演示如何进行OpenGL程序设计.包括Exe演示程序.

:)再给你一个例子吧
 
我只是想知道CreateCircularRegion的用法(参数)而已
 
可以看一下mapx自带的帮助
你要的能找到!
 
[Feature = ] OBJECT.CreateCircularRegion( Type, Point, Distance, [Units] , [Resolution] , [Style] )

Part Description
OBJECT A FeatureFactory object.
Type Short: A CircleTypeConstants value: Specify miCircleTypeScreen(value:0)or miCircleTypeMap (1). (See below)
Point Point object: Represents the location to use as the center of the circle;
specified in the current numeric coordinate system.
Distance Double: The radius of the circle, in the units specified by the Units argument.
Units Variant: A MapUnitConstants value, such as miUnitMile (0), that identifies the unit of measure for the Distance argument. Optional;
if omitted, the MapUnit property controls the Units.
Resolution Variant: A positive integer indicating the number of nodes to use in creating the circle;
maximum number is 32,763. Optional;
if omitted, the DefaultConversionResolution property controls resolution.Specifying a large resolution produces a smoother looking region, but it takes longer to generate, and the resulting object requires more storage space.
Style Variant: A Style object that defines the appearance of the feature. Optional;
if omitted, no style is set.
我就是不明白这些参数的用法,哪位大侠给段示例程序
 
type,选择显示类型是屏幕还是地图,选择miCircleTypeMap
point,是画圆的圆心
distance是圆的半径
units是单位,例如米,等等
resolution是一个曲率参数,选大点好,大了,圆像圆形,否则像椭圆,32565差不多
style是圆的形式
 
例如:map1.featurefactory.CreateCircularRegion( miCircleTypeMap , pt, 30, miunitmeter , 32565, map1.defautstyle)

画一个半径是30米的圆形
 
关键是如何取得用户点击的圆心和拖放的半径
 
同意alice的。
 
多人接受答案了。
 
后退
顶部