J'ai rencontré de nombreux utilisateurs qui ont demandé la possibilité de télécharger les services de fonctionnalités hébergés ArcGIS Online et les services de fonctionnalités/cartes ArcGIS Server. Voir l'outil ci-joint pour faire exactement cela. L'outil vous permettra également de télécharger les pièces jointes des services de fonctionnalités hébergés ArcGIS Online. J'espère que les utilisateurs trouveront cela utile et pratique.<\/P>
<\/P>
Mise à jour 10\/08\/17:<\/STRONG> L'outil téléchargera désormais les domaines de valeurs codées dans la géodatabase. De plus, consolidation des versions 2x et 3x en un seul outil. L'outil peut être exécuté depuis ArcGIS Pro ou ArcGIS Desktop.<\/P>Mise à jour 13\/11\/17: <\/STRONG>L'outil prend désormais en charge l'utilisation d'une clause where pour interroger le service.<\/P>Mise à jour 14\/03\/17:<\/STRONG> Mise à jour vers un script unique pour ArcMap\/Pro utilisant le module requests<\/P>Mise à jour 17\/01\/19:<\/STRONG> Merci à Adam Eversole<\/A> d'avoir signalé que la fonctionnalité de cet outil peut désormais être prise en charge par l'outil Feature Class to Feature Class<\/A> d'ArcGIS Pro :<\/P><\/P><\/BODY><\/HTML>
<\/P><\/BODY><\/HTML>
Hi Jake Skinner ,
I've linked many times to your toolbox since it provides a great solution for downloading data from ArcGIS for Server and/or ArcGIS Online.
I see it is also available on Search ArcScripts (BETA) , however the Language (Python) and Software (ArcGIS for Desktop) are not specified:
Is it possible to correct this?
Hi Xander,
I'll look into updating this.
Hi Jake Skinner
i tried your amazing tool it's work properly and i think its a very useful tool but i have a problem with it, sometime when i use it to download a map service that contains an Arabic text
Could you please manage the code to be working fine with Arabic text also
Thanks in advance
Rawan
Hi Jake Skinner, the entire discussion on the Arabic signs that rawan saleh refers to, can be found in this thread: Is there a way to download web map service published by ArcGIS Server?
I'm new to working with ArcGIS Online and Server. Does this tool allow you to download data that is served up by WMS connections I have set up in ArcCatalog or is it only the data you access in ArcMap from the Add Data/Add Data From ArcGIS Online option?
Thanks for your help.
What should I fill in at Service URL? I tried the rest url of my hosted feature layer but after much trying I can't seem to contact my agol
I can't get past this:
I'm sure the username and password are ok as I use the same to log in to agol. I tried and tried using the script as a starting point for my own python scripts and also tried to use example scripts from the arc rest package from github but I could not get any result ...
any help would be appreciated, after two days i'm out of idea's
Hi Bert,
It looks like you are trying to download a tiled service. This tool only supports hosted feature services in AGOL, or ArcGIS Server map/feature services.
Hello Jake,
You are right, the screendump was one of many attempts but changing that doesn't make any difference:
I tried this on my locally installed arcgis for desktop 10.2.2 and on a 10.3.1 on a citrix virtual desktop but I can see no difference.
I would be happy to write my own python scripts but same issue, I just can't seem to get a connection to my hosted features...
Can someone point me to a step-by-step or tutorial about scripted/automated management of agol? That in the end is our goal here. In the mean time i've found this:
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/The_ArcGIS_REST_API/02r300000054000000/ but it's unclear to me what I need to do.
kind regards, have a nice day.
Bert
Bert,
Specify the index of the layer at the end of your URL. For example:
http://services2.arcgis.com/hzdfa5jbraKip/arcgis/rest/services/Toekomstbomen/FeatureServer/0
Sorry, same as before with the /0 added
Whatever I seem to do I can't get past this error message.
Thanks for your reaction though, it's much appreciated.
regards,
Try with the following serivce:
https://services.arcgis.com/dlFJXQQtlWFB4qUk/arcgis/rest/services/PropertyDamage/FeatureServer/0
It's shared with 'Everyone', so you won't need a username/password. The hosted service also contains attachments.
Success! So something must be wrong in my credentials ... Thanks and I'll investigate from here
In the mean time I was pointed to: https://ago-assistant.esri.com/ which also privides a lot of information.
Ok, so my arcgis for home use works as expected but our company agol doesn't.
I'm taking this to the helpdesk. Seems odd when I can connect using my home use details to connect and obtain a token but no token when trying to connect to kdhl.maps.arcgis.com We're only talking connection here, getting a token
I am seeing this also. It is for a 3rd party app though. If I login use corp account it just keeps showing the login screen over and over. If I login with a personal account it works fine. If I login with the personal then switch and login with a corp it works. If i then shut the app and reopen it goes back to not working.
Also have an issue with the Share package tool not working. It leads 8 parts then gets a bad token error. Bring it home and it works fine.
Let me know if you get anywhere on this.
I swear this all started happening when AGO was updated last time.....
I get this error when running the script - ImportError: No module named 'urllib2', do you know what the problem could be?
Cheers
Hi Matthew Skewes,
The urllib2 module is used throughout the script to make URL requests throughout the script. To troubleshoot, try opening a python IDE (i.e. PythonWin, IDLE) and run the command:
import urllib2
Do you receive an error?
I think I get that error because I'm running it from ArcGIS Pro with the new version of Python. I have tried running the tool in ArcGIS 10.1 but when I add the toolbox and open the tool I just get this
Matthew Skewes
I created a 10.1/10.2 toolbox and copied the script tool there. Try re-downloading the tool to see if it works in 10.1 for you.
That did the trick, and the script was able to pull the project down when the export to FGDB function was failing to do so, big thanks for your help.
Hi Doug,
Following advice from the helpdesk in the Netherlands (great people) we recreated all useraccounts. No underscores nor colons anymore. They might have done something else but that's unknown to me. Now I can connect and get a token using python without problem.
Our usernames are just our email addresses so no colons or anything either. I did create a new user with no @ for our 3rd party developer to test with and he is having the same issue. Can not figure it out so far. His app works great with his company but not ours. We can give credentials to the login box with no errors or anything. But then when we try to access anything it brings up the login again. Personal account on the same device works fine. Really weird. With 107 accounts not looking forward to recreating them all.
This weekend I found out the script throws an error when the layer has no objects:
This error disappears as soon as there is at least one object in the layer. I have added an extra try - except:
Hi Jake Skinner
I'm also running into an issue establishing a connection to the hosted feature service:
Traceback (most recent call last):
File "C:\ArcREST\Download Service\Download Service with Attachments.py", line 59, in <module>
response = urllib2.urlopen(req)
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 404, in open
response = self._open(req, data)
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 422, in _open
'_open', req)
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 382, in _call_chain
result = func(*args)
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 1184, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>
Failed to execute (DownloadService)
Any idea what the issue could be here?
Thanks
Hi Vlad Romanescu,
Can you provide a screen shot of how you have the tool setup?
Certainly, I've attached a screenshot of the tool dialogue:
The feature service URL is at https://services6.arcgis.com/FAgEZRLybpkpIX4O/arcgis/rest/services/REQUESTS_FOR_SERVICE/FeatureServer/0 (shared with the organization, not the public).
Vlad, I sent you an invitation to an AGOL group called 'User Data'. Can you share the service with this Group so I can test trying to download it?
Jake, I've shared the service with the User Data group, you should be able to see it
Vlad, I could not reproduce this. I could not tell from the screen shot, but make sure that you have the layer specified in the URL by adding '/0' at the end. Ex:
Yes, the service URL has a '/0' at the end. Still the same error message. Could it be something in my organization's firewall blocking access when ArcGIS for Desktop tries to go to the feature service URL?
Vlad
Hi Jake,
Thanks for a great tool. I have it working just fine on a "standard" FS but when I have related tables it only brings down the top layer /0. Sure I am using "...FeatureServer/0" but I have tried a few things including using /1 or /3 but no joy?Should the tool work for these related tables i.e am I being stupid?
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.