3

I have 3 rasters, each is in the same SRS but with differing extents

I want to combine them into a single tile set using gdal2tiles.py

eg:-

gdal2tiles.py -z '2-4' -e -p raster -r average --s_srs EPSG:27700 raster1.tif /tiles
gdal2tiles.py -z '5-8' -e -p raster -r average --s_srs EPSG:27700 raster2.tif /tiles
gdal2tiles.py -z '9-12' -e -p raster -r average --s_srs EPSG:27700 raster3.tif /tiles

When I try this the tiles are not centred correctly when zooming from 4 to 5 and then 8 to 9. I suspect this is due to inconsistent extents of the rasters. Or am I missing something else? Should I be wrapping them in a virtual raster

0

Came here looking for the same thing. I'm trying an alternative approach of merging the multiple .tif files into one. Check out: Merging tif images into a single GeoTiff with QGIS

  • A VRT would probably be the easiest, not the fastest way. – bugmenot123 Aug 2 '19 at 11:13
  • @bugmenot123 pls expand 'VRT' and share a link if possible? – Nikhil VJ Aug 3 '19 at 7:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.