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

2012-10-29 Thread Etienne Tourigny
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 luislisboa1...@gmail.com wrote: Greetings I have a raster image and I want to crop a piece of it(usin

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

2012-10-29 Thread Luis Lisboa
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?

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

2012-10-29 Thread Etienne Tourigny
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 luislisboa1...@gmail.com wrote: Hi Yes I was using GDALWARP The prtobvlem with scrwin in