1

I have a large Raster with High resolution DEM of a large area, and I need to split it into smaller squares of 500mx500m, so that I can run other raster functions on it.

Basically I'm looking for the GDAL version of what I had asked here: Is there a Raster Equivalent of the Split tool?

How Do I Split a Raster into parts using GDAL?

7
  • After reading gis.stackexchange.com/questions/5101/… I would say there are two options, either you are happy with gdal2tiles or you need to make your script with gdalwarp...
    – Miro
    Commented Sep 9, 2015 at 6:34
  • Use gdal_translate gdal.org/gdal_translate.html with -projwin or mayby with -srcwin. You must make a script for feeding the changing parameters or just create a batch file with own command for each tile. Gdalwarp works naturally as well but because you do not warp then gdal_translate is probably faster.
    – user30184
    Commented Sep 9, 2015 at 6:47
  • @Miro: Gdal2Tiles create TMS tiles, which is not what I'm looking for Commented Sep 9, 2015 at 6:53
  • @user30184 - how do you achieve it with gdal_trnaslate, using -projwin ulx uly lrx lry to make tiles? I am taking back the gdal2tiles option, because it can't be used in this case. Reading min/max and loop through with gdalwarp (or gdal_translate) seems like way to do this. Or do it with some other python libraries...
    – Miro
    Commented Sep 9, 2015 at 6:55
  • 1
    Of course GDAL is made to read raster in an effective way. However, your raster must be in some format that supports fast access to arbitrary place in the image. For example tiled GeoTIFF, ECW, JPEG200 made with suitable compression options, and ERDAS img are good. If you have XYZ grid it is better to convert it into tiled GeoTIFF first.
    – user30184
    Commented Sep 9, 2015 at 7:25

0

Browse other questions tagged or ask your own question.