阅读:1424回复:1
在mapx中,怎么得到一条折线段是几条线组成?
在mapx中,怎么得到一条折线段是几条线组成?
|
|
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 |
|