Select to view content in your preferred language

Convert geometry object spatialreference

2473
1
04-23-2013 11:43 PM
KarlRanna
New Contributor
I'm trying to convert spatialreference 3301 geometry point to 102100. Do I have to use external library such as proj4s to accomplish this or does ArcGIS JS API have anything for it. I couldn't find it from the documentation after looking for a while.

EDIT: Nevermind, I found a solution from the samples:
http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/util_project.html
0 Kudos
1 Reply
derekswingley1
Frequent Contributor II
The only client side conversion provided by the JS API is geographic (wgs84 AKA lat, long) to web mercator and vice versa. If you need to convert from something else, use the geometry service's project method.
0 Kudos