-1

I have a geo tiff image of a County/State consisting of useful bands data. I have a kml/geojson file consisting of many small territories' boundaries inside this State/County. I would like to clip geotiff Image at all small territories and export it as a tiff. I cant clip each small sub-territory manually as there are around few thousands of them.

How this can be accomplished in rasterio?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
ayush gupta
  • 123
  • 1
  • 4
  • What have you tried so far? Have you done any research to figure out how to clip a raster by a polygon in QGIS? Have you done any research to figure out how you can run that as a batch process or write a simple script that does that? – Jon Apr 19 '18 at 21:56
  • As much as possible please only ask about one GIS software per question to prevent your questions being too broad – PolyGeo Apr 19 '18 at 22:49
  • To focus your question I retrofitted it to your self-answer. – PolyGeo Apr 19 '18 at 22:51

1 Answers1

0

This can be done easily using rasterio library as has been described here:GDAL python cut geotiff image with geojson file

ayush gupta
  • 123
  • 1
  • 4