Select to view content in your preferred language

IArea.Area value in ArcMap 10.1

352
0
09-25-2012 02:52 AM
RadeRaca
New Contributor
Im using ArcGis 10 sdk for development of an add-in. Ive installed it on both ArcMap 10 and 10.1 and Ive noticed some differences when I tried to get area of features.

For ArcMap 10, this code:


       double GetArea(IFeature feature)
        {
            return (feature.Shape as IArea).Area;
        }


returns area in area units (square meter, square feet...), if coordinate system of the feature's feature class is  projected. Otherwise it returns value in decimal degrees.

In ArcMap 10.1 the same code always returns area in decimal degrees.

Is this a bug? Do I have to install 10.1 ArcMap in order to get this to work?
0 Kudos
0 Replies