<div>Hi</div><div>Yes I was using GDALWARP</div><div>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.</div><div>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?</div>
<div>Thank you<br>Regards<br><br></div><div class="gmail_quote">On Mon, Oct 29, 2012 at 11:40 AM, Etienne Tourigny <span dir="ltr"><<a href="mailto:etourigny.dev@gmail.com" target="_blank">etourigny.dev@gmail.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">I guess you are using gdalwarp (although you didn't specifically<br>
mention it). You should be using gdal_translate with the -srcwin<br>
option<br>
<br>
Etienne<br>
<div><div class="h5"><br>
On Mon, Oct 29, 2012 at 6:47 AM, Luis Lisboa <<a href="mailto:luislisboa1975@gmail.com">luislisboa1975@gmail.com</a>> wrote:<br>
> Greetings<br>
><br>
> I have a raster image and I want to crop a piece of it(usin -te) but I want<br>
> to keep:<br>
> - the same spatial resolution (use -tr )<br>
> - and keep the same grid (avoiding mismatching from original image).<br>
> Is this possible? If yes, how? because all my attempts there is a slightly<br>
> mismatch between original and new.<br>
> Regards.<br>
> Liuis<br>
><br>
</div></div>> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>