现在有一个mapinfo地图,请问是不是可以直接得到其中某点的经纬度?
经纬度是不是已经存在地图信息中了?
不清楚MapInfo 给你一段我用的GIS的代码 看看有没参考价值
VectorLayer layer = DMapControl.Layers["旱情站点"] as VectorLayer;
ShapeFile sf = layer.DataSource as ShapeFile;
int stationCount = sf.GetFeatureCount();
for (int i = 0; i < stationCount; i++)
{
Geometry geo = sf.GetGeometry(i);
DMap.Geometries.Point p = geo as DMap.Geometries.Point;
p.x p.y 就是经纬度