当前位置: 代码迷 >> GIS >> ArcEngine中关于IFeature和IPoint的有关问题
  详细解决方案

ArcEngine中关于IFeature和IPoint的有关问题

热度:286   发布时间:2016-05-05 06:32:42.0
ArcEngine中关于IFeature和IPoint的问题
Dim pFeature As IFeature
Dim pPoint As IPoint
pFeature已经有值了是个点,我想要pPoint是pFeature点的坐标,怎么做?C#的代码也可以

------解决方案--------------------
pFeature.Shape=pPoint
------解决方案--------------------
Dim pFeature As IFeature
Dim pPoint As IPoint

pFeature.Shape=pPoint

楼上正解
------解决方案--------------------
诶,应该是pPoint=pFeature.Shape as IPoint吧