pml

AGSGeometryEngine projectGeometry

Discussion created by pml on Sep 15, 2011
Latest reply on Apr 10, 2012 by njarecha-esristaff
I have not been able to find any samples that use AGSGeometryEngine projectGeometry: toSpatialReference:. Xcode is telling me that it cannot find a method named projectGeometry:toSpatialReference. The warning messages are:

warning: Semantic Issue: Class method '+projectGeometry:toSpatialReference:' 
not found (return type defaults to 'id')

'AGSGeometryEngine' may not respond to '+projectGeometry:toSpatialReference:'


Here is the code that generates the warning:

(please note that myPoint is an AGSPoint...a type of AGSGeometry with it's spatial reference being 4326 (WGS1984))

AGSPoint *myPointReprojected;

myPointReprojected = [AGSGeometryEngine projectGeometry:myPoint 
                                   toSpatialReference:[AGSSpatialReference webMercatorSpatialReference]];


Thank you for even the smallest amount of help,
Paul Lohr

Outcomes