Re: [gdal-dev] Crop raster without changing output pixel size

2013-09-25 Thread Dmitriy Baryshnikov
I'm not sure, but /err_threshold /setting to zero maybe sute:/ / -et 0.0 Best regards, Dmitriy 25.09.2013 15:36, Jukka Rahkonen ?: Alexander Bruy gmail.com> writes: 2013/9/25 Jukka Rahkonen mmmtike.fi>: Have a try by -tr together with -tap http://www.gdal.org/gdalwarp.html I guess

Re: [gdal-dev] Crop raster without changing output pixel size

2013-09-25 Thread Jukka Rahkonen
Alexander Bruy gmail.com> writes: > > 2013/9/25 Jukka Rahkonen mmmtike.fi>: > > Have a try by -tr together with -tap > > http://www.gdal.org/gdalwarp.html > > > > I guess it will give about what you want. > > Thanks for hints, I'll try this. But seems to use -tr option I should > first calcula

Re: [gdal-dev] Crop raster without changing output pixel size

2013-09-25 Thread Alexander Bruy
2013/9/25 Jukka Rahkonen : > Have a try by -tr together with -tap > http://www.gdal.org/gdalwarp.html > > I guess it will give about what you want. Thanks for hints, I'll try this. But seems to use -tr option I should first calculate resolution of the output raster. This can work for time from tim

Re: [gdal-dev] Crop raster without changing output pixel size

2013-09-25 Thread Jukka Rahkonen
Alexander Bruy gmail.com> writes: > Is it possible to do this without raster grid resampling? Keeping pixel size > is very important for further analysis. Hi, Have a try by -tr together with -tap http://www.gdal.org/gdalwarp.html I guess it will give about what you want. -Jukka Rahkonen-

[gdal-dev] Crop raster without changing output pixel size

2013-09-25 Thread Alexander Bruy
Hi all, I have a georeferenced raster and want to crop it using shapefile as mask layer. I use next command: gdalwarp -q -cutline myshape.shp -crop_to_cutline -of GTiff input.tif output.tif All fine except one thing: the output raster has another pixel size than input. For example, input raster