Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Hello I have a Polygon object in ESRI Android SDK that I'm creating on a map, I would like to calculate that polygon object to square meters.

currently I use

 double area=polygon.calculateArea2D();

But I don't know what that geometry's default unit is to convert from..

Anyone know how I can take that Geometry's area and convert to meters squared?

thanks!

share|improve this question
add comment

1 Answer

MapView.getSpatialReference().getUnit() returns the units of the MapView, which the polygon on the map inherits. You can write a switch statement to handle the conversion to meters from the various units, or perhaps the GeometryEngine.project method will help.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.