[gdal-dev] Question about using crop_to_cutline

Luis Lisboa luislisboa1975 at gmail.com
Thu Oct 25 01:44:31 PDT 2012


Hi

I have exacly the same problem. It is resampling to the extent of the
polygon instead of croping just the pixels inside the polygon and using the
pixel frame of the original image. How can this be fixed?
Regards
Luis Lisboa





--------- ORIGINAL MESSAGE------------------------------

Greetings

I have a raster image and a shapefile polygon and I wanted to crop the
raster for just to have valid pixels inside the polygon. I have used
crop_to_cutline but here is a problem:
It produces a raster map but pixels does not geographically match with
the original raster map. So, i produce a raster map but I'm not able to
compare with original image since there is a small displacement. How can
I obtain a raster map without this mismatch?
Thank you
Regards,
Antonio

GDAL version 1.9.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121025/cb977828/attachment-0001.html>


More information about the gdal-dev mailing list