Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a web application client built using ArcGIS Server Manager which is currently showing a single map composed by three data layers. The map data are provided as a map service by my ArcGIS Server 10.1 instance.

My task is to provide the map's users a way to download the full map locally as a shapefile (e.g: zipped) via her/his web browser.

I was hinted to read here and to build a geoprocessing service to accomplish the task. I decided to write a specific toolbox myself using Python, then publish it as a geoprocessing service on my ArcGIS Server instance and finally include it into my web application.

Can you point me towards any third-party (meaning: non-ESRI) code sample to start me up? I can find no examples other than the ones in ESRI's support website!

Thanks in advance

share|improve this question
I dont see the code for it but the edcommunity has a jpg export application. – Brad Nesom Dec 3 '12 at 16:28
If you're using Esri software, why are you re-inventing/writing your own tool? This task is well documented here… . If you absolutely need to you can save the Extract Data tool and hack it up. – KHibma Dec 3 '12 at 17:05
Thanks for the hint, @BradNesom, can you please give me the URL/thread of this app? – csparpa Dec 4 '12 at 14:46

Anyone with more info can edit this answer.
The edcommunity has a sample app, but no downloadable code. As per KHibma the clip and ship will probably work.
If you aren't clipping the Edcommunity Sketch-A-Map app uses a draw widget to export.

share|improve this answer
(+1) for 10.000. Good Luck :) – Aragon Dec 4 '12 at 16:51

When we needed this, we just pregenerated a zip file for each layer, and had a link in a custom legend which allowed you to download the data, and just housed the zip files on the site. Not 'slick and automatic', but it gives a way for the user to download the data if they want.

share|improve this answer

I have accomplished this using python. Fork the code and make your mods. Please checkin any useful mods. You can fork here:

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

While your code base is obviously too long to just post in your answer, could you please give a more detailed explanation of how you went about accomplishing this task using the code that you are linking too? Especially since you are going about this in a different manner from what the poster was requesting. That would be helpful to other users who would want to determine if your solution works for them without having to dig into your repository. – blord-castillo Jun 12 '13 at 19:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.