ArcGIS for IOS 坐标系转换

来源:互联网 发布:反射 java 编辑:程序博客网 时间:2024/04/25 00:13
    //原投影坐标    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
0 0
原创粉丝点击