mapxtreme 获得线的节点坐标
MapInfo.Data.Feature myfc=MapInfo.Engine.Session.Current.Catalog.SearchForFeature(tabname,MapInfo.Data.SearchInfoFactory.SearchWhere("Highway='I 10'"));
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());
}
}
}

浙公网安备 33010602011771号