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());
  }

}

}

posted @ 2011-07-13 11:47  naariah  阅读(229)  评论(0)    收藏  举报