Re: [gdal-dev] How to find correct 2D bounding box to subset in different CRS with gdal (different outputs for gdalwarp)?

2018-11-21 Thread Andre Joost
Hello Pham, note that an EPSG:4326 rectangle of full degrees gets rotated and bended in almost any projected CRS (except Mercator). Since the EPSG:32632 raster has to be an unrotated rectangle again, the corners of the projected EPSG:4326 rectangle are different from the corners of the EPSG:

[gdal-dev] How to find correct 2D bounding box to subset in different CRS with gdal (different outputs for gdalwarp)?

2018-11-21 Thread Pham Huu Bang
Hello, I'm using GDAL version 1.11.4 and I have a problem how to use gdal to translate a bounding box correctly [Lat(62:63), Long(10:11)] from source CRS EPSG:4326 to target CRS EPSG:32632. I've tried so far with gdaltransform to translate coordinates: Long min, Lat min and Long max, Lat max (EPS

Re: [gdal-dev] downsampling geotiff with a low-pass filter

2018-11-21 Thread Kay F. Jahnke
On 16.11.18 17:04, Markus Neteler wrote: There are plenty of different kernel smoothers in GRASS GIS, e.g. box, bartlett, gauss, normal, hermite, sinc, lanczos1, lanczos2, lanczos3, hann, hamming, blackman https://grass.osgeo.org/grass76/manuals/r.resamp.filter.html Using "grass-session" (http

Re: [gdal-dev] downsampling geotiff with a low-pass filter

2018-11-21 Thread Kay F. Jahnke
On 16.11.18 16:38, JDA wrote: There’s a wide array of smoothing options available If you’re willing to work in python. Based on https://gis.stackexchange.com/a/10467, the basic idea is to load the raster into a numpy array and then convolve it with either a kernel of arbitrary size. I’ve wr

Re: [gdal-dev] downsampling geotiff with a low-pass filter

2018-11-21 Thread Kay F. Jahnke
On 16.11.18 13:13, jratike80 wrote: If a low-pass filter is needed before passing data to downsampling, I wonder if it could be done by utilizing a VRT with KernelFilteredSource https://www.gdal.org/gdal_vrttut.html. May well be that it is not relevant at all, my understanding of mathematics com