[Gdal-dev] clipping raster using polygon?

Joaquim Luis jluis at ualg.pt
Thu Jun 23 20:00:19 EDT 2005


Bart van den Eijnden wrote:

>Hi list,
>
>is it possible using GDAL to clip a raster using a polygon from eg a shapefile and have all the rest turn into NODATA values? If it is possible, how does it work?
>
>Thanks in advance.
>  
>
Bart,
You may also try this, non-GiS, non-project-first, reads most of grid 
types supported by gdal, very functional
w3.ualg.pt/~jluis/mirone
(but there are later versions at ftp.ualg.pt/users/jluis/m_gmt/tmp)

Example:
"Draw->Import line"      (your polygon as an ascii file)
right-click on the polygon and select "ROI crop grid"



More information about the Gdal-dev mailing list