//原投影坐标
AGSPoint* point_2 = [AGSPoint pointWithX:12734272.40 y:3983882.38 spatialReference:[AGSSpatialReference spatialReferenceWithWKID:102100 WKT:nil]];
AGSSpatialReference *srs = [AGSSpatialReference spatialReferenceWithWKID:4326];
AGSGeometryEngine *geoEng=[AGSGeometryEngine defaultGeometryEngine];
AGSPoint *mappoint2 = (AGSPoint *)[geoEng projectGeometry:point_2 toSpatialReference:srs];
NSLog(@"转换地理坐标=====%f",mappoint2.x);
坐标WKID参考http://gis.jl.gov.cn/Portal/api/JS/help/jsapi/spatialreference.htm
ArcGIS for IOS 坐标系转换
最新推荐文章于 2020-09-09 15:16:58 发布