Re: [gdal-dev] Unusual RGB Tiff files with misleading PhotometricInterpretation: valid or not?

2018-11-15 Thread Andrew C Aitchison
On Thu, 15 Nov 2018, Mikael Rittri wrote: When I open the files in QGIS or ArcMap, they assume RGB for the default visualization but I don't know why. One of the files looks great in ArcMap by default (but slightly too white, I believe), while it looks very much too white by default in QGIS, alt

Re: [gdal-dev] Unusual RGB Tiff files with misleading PhotometricInterpretation: valid or not?

2018-11-15 Thread Even Rouault
Mikael, > 1. If an RGB Tiff file doesn't have PhotometricInterpretation = RGB, can it > really be claimed that the file adheres to the Tiff standard, or is it > corrupt? If it has 2 values for ExtraSamples, then I believe is technically legal (the TIFF spec is not really clear but libtiff inter

[gdal-dev] Unusual RGB Tiff files with misleading PhotometricInterpretation: valid or not?

2018-11-15 Thread Mikael Rittri
Hello, list. I have recently encountered two unusual Tiff files. According to gdalinfo, there are three bands with the color interpretations Gray, Undefined and Undefined, but eventually I figured out that they are really Red, Green and Blue. Apparently, GDAL gets the information from the Tiff t

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

2018-11-15 Thread Marco
Upsample to 1m, then downsample to 5? On 15-11-18 12:06, Kay F. Jahnke wrote: Hi all! I have a very detailed GeoTIFF DEM of part of my target area (2m resolution). The remainder of the area is covered in 5m. So I'd like to downsample the moore detailed data to have everything in 5m for furth

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

2018-11-15 Thread Kay F. Jahnke
Hi all! I have a very detailed GeoTIFF DEM of part of my target area (2m resolution). The remainder of the area is covered in 5m. So I'd like to downsample the moore detailed data to have everything in 5m for further processing. The nearest thing to what I have in mind is using -r average, bu