Re: [gdal-dev] Question about using crop_to_cutline

2012-10-25 Thread Luis Lisboa
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-- Greeting

Re: [gdal-dev] Question about using crop_to_cutline

2012-10-25 Thread Joaquim Luis
I have a close functionality in Mirone but it was developed mainly for grids, though it works also with images. With a grid/image loaded, load the polygon too. Next right-click on the polygon line and select ROI Crop Tools -> Crop Image (or any of the other related options) and it's do

Re: [gdal-dev] Question about using crop_to_cutline

2012-10-25 Thread António Rocha
Hi Sorry Joaquim but I'm really trying to find a solution based on GDAL. Thanks Antonio I have a close functionality in Mirone but it was developed mainly for grids, though it works also with images. With a grid/image loaded, load the polygon too. Next right-click on the polygon line and select

Re: [gdal-dev] Question about using crop_to_cutline

2012-10-25 Thread Even Rouault
Le mercredi 24 octobre 2012 17:19:45, António Rocha a écrit : > 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

Re: [gdal-dev] Question about using crop_to_cutline

2012-10-26 Thread Jukka Rahkonen
Even Rouault mines-paris.org> writes: > This is the very same topic that is discussed in > http://trac.osgeo.org/gdal/ticket/3947 . There's no solution to your problem, > but some background discussion that explains the current behaviour. This is close to a problem I had once with creating mo

Re: [gdal-dev] Question about using crop_to_cutline

2012-10-26 Thread Marius Jigmond
e: [gdal-dev] Question about using crop_to_cutline > > Even Rouault mines-paris.org> writes: > > > > This is the very same topic that is discussed in > > http://trac.osgeo.org/gdal/ticket/3947 . There's no solution to your > > problem, > > but some b