b-twice / arcgis-rest-toolbox

Set of tools for managing ArcGIS REST Services
7 stars 6 forks source link

AGO supports exporting attachments now #7

Open maphew opened 9 years ago

maphew commented 9 years ago

wrt to readme.md "Provides the option to pull attachments or not (which is not provided in AGO when exporting a FS to a geodatabase).": ArcGIS Online's createReplica does support exporting attachments now. Not sure if this needs to have an impact on your work, but figured you'd want to know.

Point browser to http://services.arcgis.com/{xxx123456xxx}/arcgis/rest/services/{folder_name}/FeatureServer//createReplica

Set values to the below, unlisted items can just use default. Click on the resultant “statusURL”, and then “Result Url”, save zip file in wherever and extract a file-gdb with everything intact (except symbology).

Replica Name                  some_meaningful_name
Layers                        0,3 (select by index number)
Return Attachments            TRUE
Return Attachments by Url     TRUE
Create Replica Asynchronously TRUE
Sync                          None
Data Format                   FileGDB

Source: http://forums.arcgis.com/threads/60863-Export-Feature-Service-with-Attachments

Also see related work at https://gist.github.com/oevans/6992139

b-twice commented 9 years ago

Nice catch, will fix the readme to indicate how to do this via the services directory.

Thanks for the links too, never looked around and read about any of the discussions going on, just went off what was in the API. Explains why I got some traffic on this...

On Mon, Jan 19, 2015 at 5:05 PM, matt wilkie notifications@github.com wrote:

wrt to readme.md "Provides the option to pull attachments or not (which is not provided in AGO when exporting a FS to a geodatabase).": ArcGIS Online's createReplica does support exporting attachments now. Not sure if this needs to have an impact on your work, but figured you'd want to know.

Point browser to http://services.arcgis.com/{xxx123456xxx}/arcgis/rest/services/{folder_name}/FeatureServer//createReplica

Set values to the below, unlisted items can just use default. Click on the resultant “statusURL”, and then “Result Url”, save zip file in wherever and extract a file-gdb with everything intact (except symbology).

Replica Name some_meaningful_name Layers 0,3 (select by index number) Return Attachments TRUE Return Attachments by Url TRUE Create Replica Asynchronously TRUE Sync None Data Format FileGDB

Source: http://forums.arcgis.com/threads/60863-Export-Feature-Service-with-Attachments

Also see related work at https://gist.github.com/oevans/6992139

— Reply to this email directly or view it on GitHub https://github.com/bgeomapping/arcgis-rest-toolbox/issues/7.

maphew commented 9 years ago

You're welcome. Thanks for sharing in the first place.