lcatania

MapView Resolution Units Conversion

Discussion created by lcatania on Apr 4, 2012
Latest reply on Apr 4, 2012 by ibespalov
My maps are in Geographic WGS84.  When I use the getResolution method on the mapview, what units is the resolution in?  Radians?  Degrees? 

How do I convert them to meters?  I tried

AngularUnit.convertUnits(mapView.getResolution(), Unit.create(AngularUnit.Code.RADIAN), Unit.create(LinearUnit.Code.METER))));

but received an error:

com.esri.core.geometry.GeometryException: invalid_call

Outcomes