Re: [gdal-dev] Resampling a raster with gdalwarp

2023-11-19 Thread Even Rouault via gdal-dev
Le 19/11/2023 à 03:08, Giovanni Anconitano a écrit : Thank you very much. Just to be sure, gdalwarp takes the absolute value of the second tr value independently from the units of the pixel size. It can be either meters or degrees depending on the coordinate reference system. Is that correct?

Re: [gdal-dev] Resampling a raster with gdalwarp

2023-11-18 Thread Giovanni Anconitano via gdal-dev
Thank you very much. Just to be sure, gdalwarp takes the absolute value of the second tr value independently from the units of the pixel size. It can be either meters or degrees depending on the coordinate reference system. Is that correct? Thanks again, Giovanni Il giorno sab 18 nov 2023 alle o

Re: [gdal-dev] Resampling a raster with gdalwarp

2023-11-18 Thread Even Rouault via gdal-dev
Giovanni, gdalwarp takes the absolute value of the second tr value, so -tr 10 -10 is understood as -tr 10 10 It is expected that gdalinfo reports a negative value for the pixel size factor for the vertical axis, as in GeoTIFF when the image is north-up, the first line of the image is intende

[gdal-dev] Resampling a raster with gdalwarp

2023-11-18 Thread Giovanni Anconitano via gdal-dev
Hello, I have a question about how to properly set the -tr flag when using gdalwarp. In particular, I'm using gdalwarp for resampling a GeoTiff from its original resolution to a target resolution. Let's consider, for simplicity, the original pixel size equal to (5m, 5m) and the target resolution e