<div dir="ltr"><div>I guess it'll do the trick but a python script would be appreciated instead of rewriting it, if someone has it would be helpful, thanks!<br><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno gio 11 nov 2021 alle ore 17:22 <<a href="mailto:lars.schylberg@blixtmail.se">lars.schylberg@blixtmail.se</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u><div><div style="font-family:arial,sans-serif;font-size:13px">Hi<br><br>I talked about this at the foss4g 2 years ago and shared a bash script where I do exactly what you are asking for. I don't know if you consider it to be easy, but<br>the example is this script: <a href="https://gist.github.com/LarsSchy/9ecb31eb964dd83820c139b2f2769a7c" target="_blank">https://gist.github.com/LarsSchy/9ecb31eb964dd83820c139b2f2769a7c</a><br><br>Look at the function: <span>retile_with_mask() in the script. The script is doing other things as well like creating a tile index for Mapserver usage and trimming the tiles from nodata parts.<br><br>Have fun / Lars S.</span><br><br><br>11 november 2021 kl. 15:46, "Lorenzo Di Giacomo" <<a href="mailto:loridigia@gmail.com?to=%22Lorenzo%20Di%20Giacomo%22%20%3Cloridigia@gmail.com%3E" target="_blank">loridigia@gmail.com</a>> skrev:<br> <blockquote><div><div><div dir="ltr">Hi, i can't find a simple way (not to choose the cut coordinates manually) in order to crop an entire raster image into N images given a fixed size of pixel, how can this be achieved? Thanks</div></div></div></blockquote> <br><br><u></u><u></u> </div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div></div>