Select to view content in your preferred language

Documentation for MoreUtils and MGRS functions?

562
0
06-15-2010 01:15 PM
HarryLam
Emerging Contributor
Hello.

I'm trying to work with converting coordinates between MGRS and decimal degrees.  I'm working in Flex 3.5.  I'm not using the Flexviewer, so I don't think the MGRS widget in the code gallery applies to me.

I found this package in the default agslib-1.3-2009-10-31.swc library:

com.esri.ags.geod.geom.MoreUtils

It has a function called getMGRSString(lat:Number, lon:Number) that works great.

My question is about the MGRS_To_LatLon(mgrsString:String, ellipsoid:Ellipsoid) function, which doesn't seem to work as well for me, but that's probably because I really have no idea what I should enter in as the ellipsoid parameter.

I have not been able to track down documentation for this package.  I was hoping to find it [url=http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/index.html]here[/url] but no luck.  And Google doesn't have results for it.

I think I just need to know what to put as the Ellipsoid, and then it will all work fine.  And I'll take other suggestions also.  🙂  Thanks!


Edit: Hmm... after typing out my problem here, I looked a little further and found a constant "com.esri.ags.geod.Ellipsoid.WGS84" that might be what I'm looking for...
Tags (2)
0 Kudos
0 Replies