Re: [gdal-dev] gdal_translate with -projwin possible bug

2016-07-28 Thread Rutger
Thanks Even, There is probably, like Jukka mentioned, a use case for both ways, but i personally prefer your fix. If i want warp/shift functionality i use gdalwarp anyway, and then you know you have to be careful about pixel alignment etc. Even Rouault-2 wrote > I've pushed a fix in line with

Re: [gdal-dev] gdal_translate with -projwin possible bug

2016-07-28 Thread Even Rouault
On Thursday 28 July 2016 09:18:36 Lauren O'Brien wrote: > Hi Evan, > > Ok I thought it might have been at least partially intended. Unfortunately, > I think the use case the change is addressing is not what the majority of > users are thinking of when they choose projwin. I've pushed a fix in lin

Re: [gdal-dev] gdal_translate with -projwin possible bug

2016-07-27 Thread Lauren O'Brien
Brien Subject: Re: [gdal-dev] gdal_translate with -projwin possible bug Hi Lauren, This change was semi intended as far as I can remember (the change that leads to that was intended, the effect in this use case not) . It dates back to GDAL 2.1.0 where the VRT driver can now support floating

Re: [gdal-dev] gdal_translate with -projwin possible bug

2016-07-27 Thread Even Rouault
Hi Lauren, This change was semi intended as far as I can remember (the change that leads to that was intended, the effect in this use case not) . It dates back to GDAL 2.1.0 where the VRT driver can now support floating point coordinates for SrcWin / DestWin, and gdal_translate was updated acco

Re: [gdal-dev] gdal_translate with -projwin possible bug

2016-07-27 Thread Jukka Rahkonen
Lauren O'Brien gmail.com> writes: > > > Hello all, > > I've noticed what I think may be a bug with gdal_translate, just looking for further information before deciding whether to report it.  > > In version 1.11.4 and earlier, using the -projwin tag to subset a raster produces an output whose

Re: [gdal-dev] gdal_translate with -projwin possible bug

2016-07-26 Thread Rutger
Hey Lauren, I can replicate this with my Win64 installation of 2.1 (the conda-forge build). Thanks for the heads up, i also do this all the time. Not having to calculate the exact extent was one of the benefits of using projwin. The current behavior could probably also be achieved with gdal_warp

[gdal-dev] gdal_translate with -projwin possible bug

2016-07-26 Thread Lauren O'Brien
Hello all, I've noticed what I think may be a bug with gdal_translate, just looking for further information before deciding whether to report it. In version 1.11.4 and earlier, using the -projwin tag to subset a raster produces an output whose cell alignment and content matches the source dataset