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!
I created a tool that will do this, but I don't think it will work with 9.3 services (which the above URL is referencing). You should be able to make minor adjustments to the python code to do this, though.
http://epro.maps.arcgis.com/home/item.html?id=16e5cc64178941839eca62837f168ec9
with Python:
the simple way: https://community.esri.com/thread/118781#445348
or using a little more advanced: https://community.esri.com/thread/118781#445572
can i do it with this dataset?
Yes, I was able to do this with the tool I referenced. Attached is a feature class within a File Geodatabase.
Thanks for the update. I cannot get the tool to work for some reason? Do I have to edit the python code? Also, the feature class attribute table shows 77,994 records, but the actual geometry has way less? The attached picture shows in red where the features are (the black is just a admin 1 boundary of indonesia). I dont think the tool actually grabbed all the geometry (unless you stripped out the geometry and just kept empty records for size?)? Please let me know.
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.
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
Jake,
Do you have a e-mail I may contact you at? I have a few follow-up questions and a few things I am trying to work through with some other data and I cannot get the tool to work.
Justin
for some reason when i run the tool on different datasets (in UTF-8) non-roman characters (korean, chinese, cyrillic, etc characters) it wipes/scrambles them. Is there a way to fix this?
Thanks
Hi Jake,
I tried to download the tool but I got "Permission Denied".
Is there another location where I can find the tool, and (more important) can it be used to extract data from this service:
http://www.pcn.minambiente.it/arcgis/rest/services
I would like to obtain a feature set of the highest resolution water lines to process further (hydrologically condition my DEM)
Thanks,
Gijs
Gijs van den Dool, you should be able to download the tool from the following document:
https://community.esri.com/docs/DOC-6496
This should work for any map/feature services, though I have not tested with ArcGIS Server 10.0.
Thanks I got it, and will do a test - the tool works, but the service is protected (and I don't have the credentials).
I know you are busy, but could you have a look at the link I forwarded to you, having a local copy of this data would be very useful for my project. Unfortunately, I don't get much support from the organisation which is hosting this data.
Hi Jake, your tool is cool. Thank's for sharing. I've been downloading some wms, but then i found a wms server which i'm having troubles and i hope you could help me to handle it.
http://sige.inei.gob.pe/cgi-bin/mapserv?map=/var/www/html/test/atlas/map/mapa_negocios_cp.map
I note that this url has a different structure from ArcGIS services. How can i handle this kind of wms features to download its feature data.
Thank you very much.
Is this the URL of the data you would like to download?
http://gisem.osinergmin.gob.pe/arcgis/rest/services/MINERIA/MINERIA_OE/MapServer
Hi Jake, I was trying to download the features in that URL with no success, I just downloaded the tabular data.
But most important is this URL
MapServer Message
Which I cannot access using arcgis online either.
Thank's Jake
Hi Jake, happy day.
Could you help me on how to handle this kind of errors, please. Maybe a query sentence that i can use.
1. This error appeared when i was trying to download this feature layer
http://sinpad.indeci.gob.pe/arcgis/rest/services/SINPAD_2018/MapServer/215
2. This second error appeared when i was trying to download this feature layer
http://sinpad.indeci.gob.pe/arcgis/rest/services/SINPAD_2018/MapServer/204
Thank you for your time and attention.
Regards,
Juan Julio
Juan Julio Liñan rebaza it looks like this service was published without the SHAPE field enabled, so you won't be able to download the geometry of this service. However, you can download this as a table if that is helpful:
Hi Jake, thank you for your time. Look, when i try to download the tabular data from this feature layer
i get this error:
On the other side, whe i try to download the feature data from this feature layer, using a query statement
I exported the feature. This means that the shape field is enabled right?
Is there a better way to use query statemets to download only the valid geometries or "downloadable features'?
I was tryng to do the same process with the other feature service but with no succes.
When I try to use the same query on the web to export a KMZ, it is succesfully done.
Is this another probe that the shape field is enabled? Is there a way to export all the fields into a kmz format?
Thank you for your help. I'm tryng with all possibilities.
Regards
Juan julio
Juan Julio Liñan rebaza looks like KMZ may work. You can specify your query, and specify an * for the Out Fields parameter. This will return all fields.
Once you have the KMZ file, you can use the KMZ To Layer tool to convert the data to a File Geodatabase.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.