Convert CLLocationCoordinate2D (geographic degrees WGS84) to UTM - wkID: 102100

2803
4
10-06-2011 07:34 AM
koaltechs_
New Contributor
Hi all

I am allowing users to collect points when they are offline using the iPhone GPS sensor. When users are back to online (3G or WIFI) the application has to load the points in an AGSMutable point and added to a FeatureService.

The issue is that I get geographic coordinates in degrees (WGS84) from CoreLocation and in order to add them to the Feature Service I need to convert them to UTM and Spatial Reference 102100.

Has somebody of you face this conversion?

Thanks in advance

Alberto
0 Kudos
4 Replies
EddieJesinsky
New Contributor
I think you can do it with AGSGeometryEngine's projectGeometry:toSpatialReference:

http://help.arcgis.com/en/arcgismobile/10.0/apis/iOS/2.0/reference/interface_a_g_s_geometry_engine.h...
0 Kudos
NimeshJarecha
Esri Regular Contributor
If you use self.mapView.gps.currentPoint then it'll be in map's spatial reference and not in WGS 1984.

Regards,
Nimesh
0 Kudos
koaltechs_
New Contributor
Thanks a lot for your answers, solved it with self.mapView.gps.currentPoint
0 Kudos
NimeshJarecha
Esri Regular Contributor
Glad to know 🙂
0 Kudos