Does Rasterio support tiling of large geotiffs?


ashnair0007@...
 

I would like to crop my large geotiff into 800 x 800 tiles. While it's possible to do so otherwise, I was wondering if rasterio has an internal functionality to crop large geotiffs to tiles of a specific size.


Sean Gillies
 

Hi,

On Sun, May 17, 2020 at 6:35 AM <ashnair0007@...> wrote:
I would like to crop my large geotiff into 800 x 800 tiles. While it's possible to do so otherwise, I was wondering if rasterio has an internal functionality to crop large geotiffs to tiles of a specific size.

The rasterio package includes a clip command: https://rasterio.readthedocs.io/en/latest/cli.html#clip. I don't remember how we arrived at calling this "clip" instead of "crop", but it's the same idea. Internally, the clip command uses rasterio's windowed reading feature: https://rasterio.readthedocs.io/en/latest/topics/windowed-rw.html#reading.

-- 
Sean Gillies