[gdal-dev] gdalwarp - Clip raster using mask

Alisson Barbosa alisson.uece at gmail.com
Thu Nov 22 05:29:54 PST 2012


Hi friends,

By using gdalwarp to clip a raster with a mask (shape), I get a new raster
of smaller size, which is the boundary of the polygon shape (mask).
However, the pixels do not pass the polygon. I would like to pass the
pixels just a little of the polygon mask.

For clarity, I send two pictures of what I desire and not desire:
http://postimage.org/image/hlrc3911z/
http://postimage.org/image/4vn3q5t3r/

The used command is: gdalwarp -dstnodata 0 -q -cutline
C:/Users/Hugo/Final.shp -crop_to_cutline -of GTiff
C:/Users/Hugo/Elevation-DEM-CLIPPED.img
C:/Users/Hugo/Elevation-DEM-CLIPPED.img

Can you help me?

Best Regards,
-- 
Alisson Barbosa
Systems Analyst - FUNCEME
M.Sc. in Computer Science - MACC
Graduate in Computer Science  - UECE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121122/d08cf545/attachment-0001.html>


More information about the gdal-dev mailing list