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

Etienne Tourigny etourigny.dev at gmail.com
Mon Oct 29 06:48:12 PDT 2012


if your source raster is in lat/lon then you supply the lat/lon corner
coordinates of your source window, using the -projwin argument.
Sorry for the confusion.

On Mon, Oct 29, 2012 at 11:44 AM, Luis Lisboa <luislisboa1975 at gmail.com> wrote:
> 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
>
>


More information about the gdal-dev mailing list