jeremy.bridges

How do I get a WKID or WKT from a spatial reference name?

Discussion created by jeremy.bridges on May 15, 2013
Latest reply on May 20, 2013 by matthewb
Anyone know how to get the WKID or WKT from a spatial reference name ("WGS_1984_Web_Mercator_Auxiliary_Sphere")?  Of course, I've got this list:

http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/pcs.html

But, that doesn't give me a programmatic approach (besides typing all of these into an enum).

Some background: our application gets this spatial reference name from the JSON of an ArcGIS Online Item.  Instead of being in the usual format that contains the WKID, it just gives the spatial reference name.  Here's an example:

http://www.arcgis.com/sharing/rest/content/items/f14e50d8e42648c8b47a4ed7eed6b92d/?f=json

Do I need to build this for myself?

Outcomes