3

I am pulling a JSON list of features into a web page. The points come as esriMeters and the rest of my app uses Lat/Lng. How can I do this conversion in the browser (javascript)?

3

If you're executing a query against an ArcGIS service, just set the output spatial reference to the geographic coordinate system of your choice (e.g. 4326 for WGS84). This will give you lat / long.

| improve this answer | |
  • Ha - I swear I had tried requesting several combinations of formats last night but this time it's working. Getting data as needed from arcgis now. – Joe Beuckman Mar 15 '13 at 12:12
  • +1, that's certainly more straightforward :) – blah238 Mar 15 '13 at 19:19
1

Try the proj4js library (JavaScript port of the PROJ.4 C library).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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