[QGIS-trac] [Quantum GIS] #3066: GdalTools: clipping based on a
shapefile mask
Quantum GIS
qgis at qgis.org
Thu Sep 30 06:26:29 EDT 2010
#3066: GdalTools: clipping based on a shapefile mask
----------------------------------------------------------+-----------------
Reporter: brushtyler | Owner: brushtyler
Type: enhancement | Status: new
Priority: major: does not work as expected | Milestone: Version 1.6.0
Component: Python plugins and bindings | Version:
Keywords: gdaltools, clip, rasterize, shapefile mask | Platform_version:
Platform: All | Must_fix: No
Status_info: 0 |
----------------------------------------------------------+-----------------
It will be useful to add the possibility of clipping based on a shapefile
mask. This can be done with the gdal_rasterize and the option burn, eg:
gdal_rasterize -i -burn 255 -b 1 -b 2 -b 3 -l [SHAPELAYER] [SHAPEFILE]
[RASTER]
this results ion setting all three bands at 255 for the area outside the
shapefile in input.
Thanks Stefano Salvador for the suggestion.
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3066>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list