[gdal-dev] Croping raster map but keeping up the grid without resampling

Luis Lisboa luislisboa1975 at gmail.com
Mon Oct 29 06:44:06 PDT 2012


Hi
Yes I was using GDALWARP
The prtobvlem with scrwin in gdal_translater is that I want to cut my
window based on Lat/lon coordinates and not lines and columns.
So again, how can I cut a raster image, based on coordinates /x, y min,max)
and keeping up a pixel matching grid from the original image?
Thank you
Regards

On Mon, Oct 29, 2012 at 11:40 AM, Etienne Tourigny
<etourigny.dev at gmail.com>wrote:

> I guess you are using gdalwarp (although you didn't specifically
> mention it).   You should be using gdal_translate with the -srcwin
> option
>
> Etienne
>
> On Mon, Oct 29, 2012 at 6:47 AM, Luis Lisboa <luislisboa1975 at gmail.com>
> wrote:
> > Greetings
> >
> > I have a raster image and I want to crop a piece of it(usin -te) but I
> want
> > to keep:
> > - the same spatial resolution (use -tr )
> > - and keep the same grid (avoiding mismatching from original image).
> > Is this possible? If yes, how? because all my attempts there is a
> slightly
> > mismatch between original and new.
> > Regards.
> > Liuis
> >
> > _______________________________________________
> > gdal-dev mailing list
> > gdal-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121029/9f3a9f1b/attachment.html>


More information about the gdal-dev mailing list