How to get the coordinate system name from the map's published spatial reference wkid

490
3
10-23-2013 08:52 AM
JeffDyott
New Contributor
I have a map service published from ArcGIS Server.  I'd like to display the coordinate system name in my javascript application, but all I see published is the spatial reference wkid.  For example, if 32611 is the published map's spatial reference, I want to show WGS_1984_UTM_Zone_11N to the users of my javascript page.  Any suggestions?
0 Kudos
3 Replies
MattLane
Occasional Contributor II
You could make an ESRI request to http://spatialreference.org/

Unfortunately the JSON doesn't return what you are looking for, but you could handle the GML (as xml) returned from http://spatialreference.org/ref/epsg/32611/gml/
0 Kudos
JeffJacobson
Occasional Contributor III
You could make an ESRI request to http://spatialreference.org/

Unfortunately the JSON doesn't return what you are looking for, but you could handle the GML (as xml) returned from http://spatialreference.org/ref/epsg/32611/gml/


You could also load the HTML page from spatialreference.org and search the results for the element with the id "header_title". E.g., http://spatialreference.org/ref/epsg/32611/
0 Kudos
JeffDyott
New Contributor
Good suggestions.  Thanks!
0 Kudos