licher
路人甲
路人甲
  • 注册日期2003-08-03
  • 发帖数8
  • QQ
  • 铜币144枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1297回复:1

在mapx中,怎么得到一条折线段是几条线组成?

楼主#
更多 发布于:2004-01-31 15:45
在mapx中,怎么得到一条折线段是几条线组成?
喜欢0 评分0
echo2003
点子王
点子王
  • 注册日期2003-07-28
  • 发帖数2453
  • QQ76947571
  • 铜币5473枚
  • 威望1点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
1楼#
发布于:2004-02-01 10:13
你可以看MAPX的Polyline features的相关帮助!
下面这个事例,你可以借鉴
Examining the Nodes that Make Up a Feature

This Visual Basic example demonstrates how the Parts collection and Points collection allow you to loop through all the points in a selected feature.

Dim obj as MapXLib.Feature  

Dim pts as new Points

Dim pt as new Point

set obj = map1.layers(1).selection(1)

for each pts in obj.parts

  for each pt in pts

    debug.print pt.x, pt.y

  next

next  

举报 回复(0) 喜欢(0)     评分
游客

返回顶部