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 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...