Hi all,
I'm new to ArcGis.
I have to add a function for calculate the area, in squared meters, of an irregular geographic surface, to an application.
The application use Google Map.
I'm trying to use AGSGeometryEngine.areaOfGeometry method in this way:
AGSSpatialReference *ref = [AGSSpatialReference wgs84SpatialReference];
AGSMutablePolygon *polygon = [[AGSMutablePolygon alloc] initWithSpatialReference:ref];
[polygon addRingToPolygon];
[polygon addPointToRing: p1];
[polygon addPointToRing: p2];
[polygon addPointToRing: p3];
AGSGeometryEngine *engine = [[AGSGeometryEngine alloc] init];
area = [engine areaOfGeometry:geom];
I think that this code is wrong because the result is in "squared degrees", is true?
What's the best way to get a correct area in squared meters with my points?
I'm testing my application with this points.
P1 = 44.50167,11.34982
P2 = 44.499035,11.34454
P3 = 44.5026,11.348104
Thanks