Hi everyone,
I'm trying to get a TIFF of a specific layer (ID 54, "1:12.000") from this ArcGIS REST Map Service: https://tiles.arcgis.com/tiles/nSZVuSZjHpEZZbRo/arcgis/rest/services/Historische_tijdreis_1901/MapSe....
The export capability is disabled, and I need to extract this layer for a specific municipality.
Are there any known workarounds for this, such as:
Programmatically downloading and stitching tiles (e.g., with Python/GDAL)?
Using ArcGIS Pro/Desktop to export it?
Any third-party tools/APIs?
Any "hacks" or suggestions would be greatly appreciated!
Thanks!
Hi @IB3,
You can research faster alternatives eventually, but you can use arcpy, quite (very) slow in my testing but certainly gets the job done. Use url to the mapserver and the layer id. You might want to use and environmental setting to limit the extent to be extracted.
import arcpy
url = "https://tiles.arcgis.com/tiles/nSZVuSZjHpEZZbRo/arcgis/rest/services/Historische_tijdreis_1901/MapServer/54"
arcpy.management.CopyRaster(
in_raster=url,
out_rasterdataset=r"C:\path\to\output\testing.tif"
)
All the best,
Glen