mapinfo开发 >> MapXtreme开发基础教程四:mapxtreme线的节点坐标
最后编辑时间:2021年07月23日 18:05:26【内容简介】mapxtreme计算直线或者折线的节点坐标。
MapInfo.Data.Feature myfc=MapInfo.Engine.Session.Current.Catalog.SearchForFeature(tabname,MapInfo.Data.SearchInfoFactory.SearchWhere("Highway='I10'"));
MapInfo.Geometry.MultiCurve c=(MapInfo.Geometry.MultiCurve)myfc.Geometry ;
foreach(MapInfo.Geometry.Curve c1 in c)
{
MapInfo.Geometry.DPoint []d=c1.SamplePoints();
for (int i=0;i<c.MultiCurveEditor[0].ControlPointCount;i++)
{
MessageBox.Show(this,d.x.ToString()+","++d.y.ToString());
}
}
我们可以将计算的mapxtreme线的节点坐标导出。

分享到: 豆瓣 新浪微博 百度贴吧 QQ空间 QQ好友
复制链接分享给好友或者自己收藏!这里会及时更新中。。。