Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm using a public ArcGis server with some data I would like to export to shape or some other format. I know I can make a program (I'm a developer) that could query the server for all the features on that layer, but I would like something cleaner.

Is there a easy way to export data from a feature layer in ArcGis Server to Shapefile using ArcMap or via web?

share|improve this question
    
You could get it directly in KML format from the REST End Point; Once you have the KML, there are many ways of getting it into shapefile or other formats. –  Devdatta Tengshe Dec 24 '12 at 3:10
    
That could be a way to do it manually. I didn't like it because the tabular data is transformed in HTML tables. It didn't work for my particular workflow, but could work for someone else. –  mikehc Dec 24 '12 at 3:22

2 Answers 2

up vote 1 down vote accepted

I couldn't find an easy way to do it. I had to do it the hard way. If you have to, here are some clues to do it.

  1. You will have to use the ArcGis Api to retrieve the results. You can use the REST Api directly or can use one of the various APIs by ESRI using your language of choice.
  2. You have to know the IDs of the maps you want to retrieve data from. You can query the server to get all de maps IDs too.
  3. Query the server for results. In the 'Where' clause use '1=1' to get all the results. Remember to mark 'Retrieve Geometry' to true if that's the case and use a valid Spatial Reference if you want the result transformed.
  4. ArcGis Server has a default limit of 1000 results per query (it may be different depending of custom configuration). There's no way to paginate the results, so if the data has more than 1000 rows you have to do the following.
  5. Get the IDs of the objects (rows), there's no limit for the results of this query.
  6. Get the first 1000 IDs and query the server for them, repeat until you finish.
  7. Parse/Transform the data for your use.
  8. ???
  9. Profit

You can also do this using the web interface of ArcGis Server, if you do know much about programming.

share|improve this answer

I came across this looking for answers about KML extraction from AGS.

However, what you're looking to do is quite easy, presuming I understand it correctly.

What you need to do is use the data extraction tool. The only downfall of this that the user input shape 'clips' the data. However, in model builder you can modify it if you like to us another selection method.

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00540000000s000000.htm

Vector output supports both Shape and GDB UPDATE: I found a very crude way to modify this so that it essentially functions as a select and not a 'clip' AOI for the input...did this a while back and funny, found this while looking for something totally different! 'Input' is a layer contained in the published map service, 'Stand Selection' is a Feature set, and 'outputfc' is your AOI. Crude as it is...it works. Oh well, back to looking for what I was really after enter image description here

share|improve this answer
    
It could work. In my specific scenario I didn't have any control over the server and the data extraction tool didn't work correctly. It seemed like it required extra configuration on the server's side, I really don't know. –  mikehc Jun 13 '13 at 18:30

Your Answer

 
discard

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.