Need to export features to kml and shp format

1768
4
03-18-2014 04:01 AM
DeepikaJain
New Contributor III
Dear All

I am using arcgis javascript api 3.8, I need to export the features identified through identify task to shp and kml format.

Any inputs on this would be of great help.

Thanks
Deepika
0 Kudos
4 Replies
JohnGravois
Frequent Contributor
Deepika,

our JavaScript API doesn't include any inbuilt tools to accomplish something like that so you might consider publishing a geoprocessing service to accomplish the same.  it would have to take in an input featureset and write those features to disk on the server.

https://developers.arcgis.com/javascript/jssamples/gp_clipasync.html

http://resources.arcgis.com/en/help/main/10.2/#/Clip_and_ship/01540000035r000000/
0 Kudos
pankajpedram1
New Contributor
Please find attachment
0 Kudos
JakeSkinner
Esri Esteemed Contributor
Hi Deepika,

Here is an example using a feature layer and exporting to a shapefile through a button added to the info window.  The export is handled through a geoprocessing service.

Note:  it will take about 30-60 seconds for the zipped shapefile to be returned
0 Kudos
RamezRafatVolue
New Contributor II

The link does not work any more!? 

0 Kudos