Monday, 9 April 2018

arcgis 10.0 - Is it possible to reproject KML using ESRI's Javascript API?


Specifically into NAD83.


Google tells me that KML only supports WGS84, but I can't seem to find much info on being able to reproject KML using ESRI's Javascript API.


Basically, I've got this base map in Nad83 and I need to overlay some kml.



Answer



Yes, the ArcGIS API for JavaScript's KMLLayer class relies on a hosted service that converts a KML file to JSON. To re-project, specify an outSR in the constructor options when creating your KML layer.


No comments:

Post a Comment