wing_32
路人甲
路人甲
  • 注册日期2009-06-12
  • 发帖数2
  • QQ
  • 铜币114枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1423回复:1

如何获取线的每一个节点的坐标

楼主#
更多 发布于:2009-06-24 12:01
在VBA/VB环境下如何获取线的每一个节点的Z坐标值,并进行平差,赋回给原先的节点
喜欢0 评分0
goodmangis
外卖仔
外卖仔
  • 注册日期2006-03-10
  • 发帖数34
  • QQ
  • 铜币244枚
  • 威望2点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • GIS帝国铁杆
1楼#
发布于:2009-07-24 08:18
<P>意思好像没有表达清楚,获取xyz的坐标可以使用IPointCollection获得。主要参看以下代码</P>
<P>z也是一样的。</P>
<P>Dim theshape As IGeometry<BR>Set theshape = thefeature.Shape<BR>Dim thepoints As IPointCollection<BR>Set thepoints = theshape</P>
<P>For i = 0 To thepoints.PointCount - 1<BR>    Dim thepoint As IPoint<BR>    Set thepoint = New Point<BR>    With thepoint<BR>    .x = thepoints.Point(i).x<BR>    .y = thepoints.Point(i).y<BR>    End With</P>
<P>next i</P>
<P><img src="images/post/smile/dvbbs/em05.gif" /></P>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部