Extract Features From MapServer/ Rest/ Soap/ etc?

17601
42
Jump to solution
01-15-2015 07:04 AM
JustinMeyers
New Contributor III

Is it possible to extract gis data (features, records, geometry, etc) from arcgis rest/ soap/ Mapservers? 

For example: ProxyServices/DDOTBaseMapProxy (MapServer)

can i extract the first layer

and make it a shapefile/ feature class, etc?

Thanks!

42 Replies
JustinMeyers
New Contributor III

indo_vill.jpg

0 Kudos
JakeSkinner
Esri Esteemed Contributor

The feature class appears correct.  I added the service to ArcMap by making an ArcGIS Server connection to the rest directory:

http://services2.arcgis.com/LvCBNZuwhTWWbvod/ArcGIS/rest/services

I turned off all layers but the first and overlapped the feature class.  Here is a screen shot of the service:

screen1.png

Here is a screen shot of the feature class:

screen2.png

Also, when running the tool, you will want to make sure you are specifying '/query' at the end of the URL.  Ex:

screen1.png

XanderBakker
Esri Esteemed Contributor

Jake Skinner‌, could you run a Check Geometry on your resulting featureclass?

0 Kudos
XanderBakker
Esri Esteemed Contributor

It seems there are only 2000 valid geometries, the rest has null geometry (checked with Check Geometry). I did the same using my code and that does seem to generate the valid geometries.

Villages.png

I would have attached the zipped gdb, but it is 116 MB and too large to attach to the thread. If you can provide me with an email address I can send it using wetransfer.com

0 Kudos
JustinMeyers
New Contributor III

okay, I'm running the tool and it seems to be working so far (I will have to check the geometry).  I kept on trying different web addresses; then i saw the address you put in.  Thanks for all of your help!  I might have a few follow-up questions in case this didn't work, but it looks like this thing is just clippin along!!!  Thank you so much; talk with you soon! 

0 Kudos
JakeSkinner
Esri Esteemed Contributor

Looks like there was an error with the script.  For some reason, it was only inserting the geometry for the first 1,000 features.  I went ahead and updated the tool/script to work correctly.  I also updated it so that you don't have to enter '/query' at the end of the URL. 

http://epro.maps.arcgis.com/home/item.html?id=16e5cc64178941839eca62837f168ec9

PeterYoung
New Contributor

The 1/15 .zip file doesn't open. Please repost -- I'd like to give this a try.

0 Kudos
JakeSkinner
Esri Esteemed Contributor

Try using 7zip to unzip the file.

0 Kudos
LeoLadefian5
Occasional Contributor II

Hi Jake, the referenced tool is locking me out from downloading. Permissions.

0 Kudos
JakeSkinner
Esri Esteemed Contributor