Dim pPoint As IPoint
pFeature已经有值了是个点,我想要pPoint是pFeature点的坐标,怎么做?C#的代码也可以
7 个解决方案
#1
能不能把pFeature的点的信息x,y取出来,然后new pPoint(x,y)啊?
我也不是很清楚,帮顶
我也不是很清楚,帮顶
#2
pFeature.Shape=pPoint
#3
Dim pFeature As IFeature
Dim pPoint As IPoint
pFeature.Shape=pPoint
楼上正解
Dim pPoint As IPoint
pFeature.Shape=pPoint
楼上正解
#4
诶,应该是pPoint=pFeature.Shape as IPoint吧
#5
楼主应该通过field已经得到了feature,而且知道feature的type却不知道如何赋值才问的吧,呵呵
#6
个人觉得ArcGIS自带的帮助文档(AE方面)更能帮助LZ您!
#7
看一下
#1
能不能把pFeature的点的信息x,y取出来,然后new pPoint(x,y)啊?
我也不是很清楚,帮顶
我也不是很清楚,帮顶
#2
pFeature.Shape=pPoint
#3
Dim pFeature As IFeature
Dim pPoint As IPoint
pFeature.Shape=pPoint
楼上正解
Dim pPoint As IPoint
pFeature.Shape=pPoint
楼上正解
#4
诶,应该是pPoint=pFeature.Shape as IPoint吧
#5
楼主应该通过field已经得到了feature,而且知道feature的type却不知道如何赋值才问的吧,呵呵
#6
个人觉得ArcGIS自带的帮助文档(AE方面)更能帮助LZ您!
#7
看一下