阅读:1700回复:1
如何用程序取出MapXtreme一条路中的所有的Nodes点
同上,请知道的赐教啊,谢谢了.
|
|
1楼#
发布于:2008-08-27 14:51
<P>Feature myfc = MapInfo.Engine.Session.Current.Catalog.SearchForFeature(tabname, MapInfo.Data.SearchInfoFactory.SearchWhere("1=1"));<BR> <BR> MapInfo.Geometry.MultiCurve c=(MapInfo.Geometry.MultiCurve)myfc.Geometry ;</P>
<P> foreach(MapInfo.Geometry.Curve c1 in c)<BR> {<BR> MapInfo.Geometry.DPoint []d=c1.SamplePoints();</P> <P> for (int i = 0; i < c.GetMultiCurveEditor().CurveCount; i++)<BR> {<BR> for (int j = 0; j < d.Length; j++)<BR> {<BR> MessageBox.Show(this, d[j].x.ToString() + "," + d[j].y.ToString());<BR> }<BR> }</P> <P> }</P> |
|