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

Etienne Tourigny etourigny.dev at gmail.com
Mon Oct 29 04:40:57 PDT 2012


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


More information about the gdal-dev mailing list