{"id":22881411,"url":"https://github.com/nicogis/downloadservice","last_synced_at":"2025-09-10T01:37:49.894Z","repository":{"id":80808325,"uuid":"139472877","full_name":"nicogis/DownloadService","owner":"nicogis","description":"Download data from services of arcgis server or host service","archived":false,"fork":false,"pushed_at":"2019-10-23T13:25:35.000Z","size":37,"stargazers_count":37,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T05:41:34.265Z","etag":null,"topics":["arcgis-portal","arcgis-pro","arcgis-server","arcpy"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicogis.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-02T17:21:27.000Z","updated_at":"2025-02-24T08:06:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"436c9d13-6235-48dc-bdc1-ba4c1a9bafde","html_url":"https://github.com/nicogis/DownloadService","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicogis%2FDownloadService","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicogis%2FDownloadService/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicogis%2FDownloadService/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicogis%2FDownloadService/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicogis","download_url":"https://codeload.github.com/nicogis/DownloadService/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252804759,"owners_count":21806870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arcgis-portal","arcgis-pro","arcgis-server","arcpy"],"created_at":"2024-12-13T17:33:39.239Z","updated_at":"2025-05-07T03:21:09.410Z","avatar_url":"https://github.com/nicogis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Download service data for ArcGIS Pro\n\n#### Description\n\nYou can download data and attachments from Map or Feature Service\n\nSelect *Hosted Feature Service* if the feature service is in arcgis.com or in a federated portal or\nselect *ArcGIS Server Service* if the feature service or map service is in ArcGIS Server.\n\nIf you select *Hosted Feature Service* and your service is protected you need to select in the list *Portal/AGOL* the connection of ArcGIS Pro to connect at service. However you need to insert user and password.\n\nIn *Service url Layer/Table* insert the url of service's layer. It can be a *Feature Layer* or a *Table*.\nExample Service url Layer:\n- https://host/server/rest/services/SampleAttach/MapServer/3\n- http://host/OrgID/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/FeatureServer/0 \n\nIn *Where* set a where clause for the query filter. Any legal SQL WHERE clause operating on the fields in the layer is allowed.\nIf it is empty download all records.\n\nIn *Spatial Filter* you can set a feature class or if you have an open map you can digitalize a geometry on the fly.\nThe geometry is used to apply as a spatial filter.\n\nThe *Spatial Relationship* is applied on the input geometry while performing the query. The supported spatial relationships include intersects, contains, envelope intersects, within, and so on. The default spatial relationship is *esriSpatialRelIntersects*.\n\nThe *Username* and *Password* are required if the service is protected.\n\nIn *Folder attachments* you can set an empty folder to download attachments of layer/table. It downloads files if the layer / table has attachments, the *hasAttachments* property of service should be true. The name of file is in the format: *oid-id_attachment-id_attachment_name*\n\nIn *Output Feature Class/Table* select a dataset (feature class/table) for output \n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"Images/DownloadService.PNG\"\u003e\n\u003c/p\u003e\n\nIf you have a proxy for connection you can set the variable PROXY at the start of the script\nFor example:\n\n```\u003clanguage\u003e\n    PROXIES = {\n      \"http\": \"http://10.10.1.10:3128\",\n      \"https\": \"http://10.10.1.10:1080\",\n    }\n```\n\nIn the script there is a variable CHUNK. It's set 200 so every request sends chunk of 200 oids.\nIf there's an error in request you can try to set a lower value (there's a limit of length in featureset.load()).\nHowever if you set a value superior than *maxRecountCount* it's set *maxRecountCount* \n\n### TODO\n- download domains\n- download relate data\n- set output fields\n\n## Issues\n\nFind a bug or want to request a new feature?  Please let us know by submitting an issue.\n\n## Contributing\n\nAnyone and everyone is welcome to contribute.\n\n### Requirements\n\n[ArcGIS Pro](https://pro.arcgis.com/en/pro-app/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicogis%2Fdownloadservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicogis%2Fdownloadservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicogis%2Fdownloadservice/lists"}