Select to view content in your preferred language

wkid from wkt

1193
1
04-16-2013 12:26 AM
CristinaJacome
Emerging Contributor
Hello

If I create spatialreference with the WKT:

 
var sr = new esri.SpatialReference('GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",
  SPHEROID["WGS_1984",6378137.0,298.257223563]],
  PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'
);
 


How can I know the WKID??


sr.wkid is null.


Thanks
0 Kudos
1 Reply
sameerpuppal
Deactivated User
Hi,

for custom spatial reference, only WKT will be available and WKID is null. you can also confirm the same by checking the REST end point of your service. if it shows WKT then it is custom spatial reference.

You can check list to get closest or matching WKID :

http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/index.html?project.html

http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/index.html?project.html

Best luck

Regards,
Sameer Puppal
GIS Developer.
Mahindra Satyam, India.
0 Kudos