New answers tagged

0

Since /vsis3/ is implemented in GDAL you can also use rasterio to read Windows of S3 datasets. This requires either your credentials to be set up for boto or using rasterios AWS session handler. import rasterio with rasterio.open('s3://landsat-pds/L8/139/045/LC81390452014295LGN00/LC81390452014295LGN00_B1.TIF') as ds: window = ds.read(window=((0, 100), (...


2

I've found when something isn't particularly well documented in GDAL, that looking through their tests can be useful. The /vsis3 test module has some simple examples, though it doesn't have any examples of actually reading chunks. I've cobbled together the code below based on the test module, but I'm unable to test as GDAL /vsis3 requires credentials ...


1

Try using an XML file to store the WMS info in, more details are at the GDAL WMS documentation. Here's an example WMS XML file to retrieve data from Mapzen's Elevation API: <GDAL_WMS> <Service name="TMS"> <ServerUrl>https://s3.amazonaws.com/elevation-tiles-prod/geotiff/${z}/${x}/${y}.tif</ServerUrl> </Service> <...


0

I don't know much about S3 buckets but it seems that it's a cloud storage drive with authentication using http REST services. i.e. could be used as an ordinary mounting point, with an associated uri. If you are looking for cropping parts of images/raster then the file needs to be in an appropriated format. Take a look at the TMS specification http://...


1

The accepted answer is probably superior, but I just chose a quick and dirty method to merge files. First I build a index file using gdaltileindex. I then use gdal tools to returns a list of files that the bounding box intersects with. I then use gdal_merge.py to merge them the intersecting DEMs into one large dem and used the crop parameter of gdalmerge.py ...


5

This can be achieved with the help of GDAL's Virtual Raster Format. With this you can essentially skip the step of creating one giant DEM. The VRT will be handled by GDAL like a giant, merged DEM but is just a small XML file containing the file paths for each tile as well as some metadata. This can then be fed to gdalwarp together with a bounding box or a ...



Top 50 recent answers are included