关于Mapinfo中多边形图元各角经纬度数据的查询问题
搜索一个移动通信小区的覆盖范围数据,其实际呈现的应该是一个不规则多边形,应该有多个拐点,但我查询的结果始终只有4个点,利用这四个点重新绘制的图层是一个正南北向的矩形,代码如下:SearchInfo si = MapInfo.Data.SearchInfoFactory.SearchWhere("int_id__编号" + " like '%" + CellIds[i] + "%'");
Feature fs = MapInfo.Engine.Session.Current.Catalog.SearchForFeature(maptables[0], si);
MapInfo.Engine.Session.Current.Selections.DefaultSelection.Clear();
if (fs==null)
{
RetVal += "Cannot find the Cell:" + CellIds[i];
}
else
{
RetVal += "Find the cell:" + CellIds[i];
Geometry geom = fs.Geometry;
//Polygon pGeom = (Polygon)geom;
MultiPolygon mpGeometry = (MultiPolygon)geom;
Polygon poly = (Polygon)mpGeometry[0];
Ring r = poly.Exterior;
DPoint[] dp = mpGeometry.Bounds.Corners(); MAP
补充:企业软件 , 地理信息系统