ArcGIS for IOS 坐标系转换

    //原投影坐标
    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

你可能感兴趣的:(IOS)