Select to view content in your preferred language

IArea and measure unit

368
1
08-27-2010 12:30 AM
MarioLeggio
New Contributor
Dear all
I used IArea interface to get area of a polygon, but I don't know exactly which is returned unit.
I suppose it returns the area value using the same unit from the layer where the polygon is, but:
how to convert the area to square kilometers?

Thanks
0 Kudos
1 Reply
NeilClemmons
Honored Contributor
IArea uses whatever units are defined by the geometry's spatial reference.  If the spatial reference is not set, then the units are unknown.  To convert the area units to a specific unit, you apply the appropriate conversion factor.  In cases where the geometry has a geographic coordinate system, you will want to project that geometry into an appropriate projected coordinate system in order to have linear units to use for the conversion.
0 Kudos