Select to view content in your preferred language

Add rasters via range request (http) from apache2 server

436
2
02-15-2023 06:49 AM
PBircher
Occasional Contributor

Is there a possibility to import rasters via range-http-requests based on apache?

With gdal the Metadata of the file is available in ArcGIS Pro. How can I add the raster to the map?

 

import arcpy
from osgeo import gdal
ds = r'/vsicurl/http://xx.xxx.xxx.xx:80/pixel_map.tif'
gdal.Info(ds)

 

Thank you and kind regards

Tags (3)
0 Kudos
2 Replies
Luke_Pinner
MVP Regular Contributor

Make a VRT (virtual raster) that points to the url.

ds = gdal.OpenEx(tiff_url)
gdal.Translate("path/to/output.vrt", ds)  

Or here's a python toolbox to do the same:

Add remote COG to ArcGIS Pro by URL - Add_COG.pyt

 

0 Kudos
PBircher
Occasional Contributor

Thank you. I will try it.

0 Kudos