Python GIS - Clip Raster to a Polygon Extent using gdal.Warp

preview_player
Показать описание
Use Python to clip a raster layer with a vector layer using GDAL. The gdal.Warp function is often used to project a raster from one projection to another. It can also be used to clip a raster with a polygon shapefile. The simple clipping process is described in this video.

Рекомендации по теме
Комментарии
Автор

Would be cool if you provided (links to) the file assets you used in this video so that we might practice ourselves.

EVUTube
Автор

I think the problem is because you have not set result to None after the cut operation.

badalmohanty
Автор

Hi, great tutorial! How about if we want to clip the inside of geometries, in this case, the inside of the clips will be removed.

isabelbrandao
Автор

Hi, I have a doubt if I have a shapefile that is not a boundary as in your case, my shape file is a rectangle and that part I want to clip from my Landsat then which parameter we should use as in gdal.Wrap you have used cutlineDSName=shpin, can you please help me.

aswinkrishna
Автор

how can we apply this on multiple files for example if i have 10 images i want to clip. instead of clipping single can we clip them in a short way

pervaiziqbaljames
Автор

how to input multiple cutline subzone in geojson format

max
Автор

This this separate from arcpy?.. I I know veryy little and I need to crop a raster to shape file and we have been using arcpy throughout the course

kassandrac
Автор

Hi, thanks for all this videos! I'm having a lot of trouble trying to not saving the clip as a new .tif file but as a new dataset in memo. Do you know if this is possible. Thank you very much!

Arnauf
Автор

How I could use a layer from geopackage instead shapefile?

byander