talus-tech

GeometryEngine shapePreservingAreaOfGeometry

Discussion created by talus-tech on Jul 24, 2013
Hi Guys,

I have an app that lets the user record a polygon and writes it to a file. One of the attributes included is the Area of the polygon, i am using the following code to calculate the area:

[self.geometryEngine shapePreservingAreaOfGeometry:<PolygonGeometry> inUnit:AGSAreaUnitsHectares];

Although, this codes gives out the area. I am not sure if it is the right calculation.

Can anyone tell me if my calculation is correct? or how to accurately calculate the area of a polygon in hectares.

Thanks.

EDIT:

It seems that i just need to project my polygon first to an Equal Area Projected Coordinate System and then use the shapePreservingAreaOfGeometry function.

Outcomes