Select to view content in your preferred language

Reproject KML file and add to Map

567
1
10-28-2013 10:09 PM
MattPratap
Deactivated User
We require our Silverlight app to load and display KML data from another system.  Unfortunately our app's map coordinate system and projection is custom for the particular site.

Is there a way to convert an entire KML document to the coord sys/projection and display it in the map and retain the symbology of the KML?  Can the esri silverlight api do this on the client?

I know there is a KMLToLayer_conversion tool and we can utilize that with a geoprocessing task, then project it, but how to load the resulting featureclasses and lyr file dynamically into the client silverlight app?

thanks
0 Kudos
1 Reply
ArtemisFili
Esri Contributor
You can create a KmlLayer and then use the ProjectionService Property that will allow you to project geometry in the data source to the map's spatial reference.

http://resources.arcgis.com/en/help/silverlight-api/apiref/api_start.htm?esri.arcgis.client.toolkit....
http://resources.arcgis.com/en/help/silverlight-api/apiref/api_start.htm?ESRI.ArcGIS.Client.Toolkit....
0 Kudos