Re: [gdal-dev] Resampling causes change of max value

2021-05-20 Thread Denis Rykov
Thank you Even. You are totally right as always. The reason is the broken overview. $ gdal_translate -outsize 1% 1% -oo OVERVIEW_LEVEL=0 input_raster_to_resize_with_max_val_92.tiff output-0ovr.tif $ gdal_translate -outsize 1% 1% input_raster_to_resize_with_max_val_92.tiff output.tif $ gdalinfo -

Re: [gdal-dev] Resampling causes change of max value

2021-05-20 Thread Even Rouault
Denis, The maximum of nearest downsampling should be <= maximum of full resolution. Potential explanations: - your source file has overviews that contain completely different values than the full resolution image. - or perhaps your input_raster_to_resize_with_max_val_92.tiff file has a .aux

[gdal-dev] Resampling causes change of max value

2021-05-20 Thread Denis Rykov
$ gdalinfo -stats -json input_raster_to_resize_with_max_val_92.tiff | jq '.bands[0].metadata[""].STATISTICS_MAXIMUM' "92" $ gdal_translate -outsize 1% 1% input_raster_to_resize_with_max_val_92.tiff output.tif Input file size is 6845, 10302 0...10...20...30...40...50...60...70...80...90...100 - done

Re: [gdal-dev] Freenode IRC taken over(was Fwd: [SAC] [Hosting] OSUOSL IRC channels moving to irc.libera.chat)

2021-05-20 Thread Mateusz Loskot
On Thu, 20 May 2021 at 20:07, Richard Duivenvoorde wrote: > > But... the cool thing is[...] you can have different matrix identities. Although I'm aware, my personal preference is to avoid that feature and chain myself to the matrix.org. ...one's habits one's worst enemy Best regards, -- Mateu

Re: [gdal-dev] Freenode IRC taken over(was Fwd: [SAC] [Hosting] OSUOSL IRC channels moving to irc.libera.chat)

2021-05-20 Thread Richard Duivenvoorde
But... the cool thing is you don't need to register at matrix.org to be able to use other matrix servers. As Sandro says: your osgeo.org-id should also be a valid (osgeo)-matrix id, at least to communicate with osgeo users, but for what I know also with matrix.org-user accounts. And just like d

Re: [gdal-dev] Freenode IRC taken over(was Fwd: [SAC] [Hosting] OSUOSL IRC channels moving to irc.libera.chat)

2021-05-20 Thread Mateusz Loskot
On Thu, 20 May 2021 at 11:09, Sandro Santilli wrote: > On Wed, May 19, 2021 at 09:00:52PM +0200, Even Rouault wrote: > > > > > > - something else ? > > In case you missed it, OSGeo is now hosting a Matrix homeserver: > https://wiki.osgeo.org/wiki/SAC:MatrixSynapse > > Matrix is an open protocol fo

Re: [gdal-dev] A Swift wrapper for GDAL

2021-05-20 Thread Roberto Arista
@Evan > the C API is what is commonly used to create bindings to other languages Good to know, thanks! @Gaige > Also, if necessary, wrapping a C++ library in Objective-C(++) is relatively > simple and I’ve found that effective where I needed to use the more advanced > features (as Even points o

[gdal-dev] GDAL on Windows/Mac : issue decoding GRIB2 files compressed with the JPEG2000 option

2021-05-20 Thread Edouard, Sandrine (EC)
Dear GDAL Users list members, We discovered that on Windows and Mac, some versions of GDAL do not properly decode GRIB2 files if the data is compressed with the JPEG2000 option. Sample of impacted data: https://collaboration.cmc.ec.gc.ca/cmc/cmos/gdal_Jpeg2000/CMC_RDPA_APCP-024-0700cutoff_SFC_0

Re: [gdal-dev] complete > 1 when using a progress callback with Dataset::BuildOverviews

2021-05-20 Thread Momtchil Momtchev
    In fact, it never happens with 3.3.0/3.2.3, ignore it On 20/05/2021 12:06, Momtchil Momtchev wrote:     Hello,     Sometimes, I am getting a value of 0 and sometimes slightly over 1 (like 1.005) for /complete/ in the progress callback of /Dataset::BuildOverviews/, should I try to iso

[gdal-dev] complete > 1 when using a progress callback with Dataset::BuildOverviews

2021-05-20 Thread Momtchil Momtchev
    Hello,     Sometimes, I am getting a value of 0 and sometimes slightly over 1 (like 1.005) for /complete/ in the progress callback of /Dataset::BuildOverviews/, should I try to isolate it or should I just consider it a quirk and ignore it?     I would have ignored it, but the other fun

Re: [gdal-dev] Freenode IRC taken over(was Fwd: [SAC] [Hosting] OSUOSL IRC channels moving to irc.libera.chat)

2021-05-20 Thread Sandro Santilli
On Wed, May 19, 2021 at 09:00:52PM +0200, Even Rouault wrote: > Hi, > > See below about Freenode IRC having been taken over (or considered as such > by most Freenode admins), which affects our existing #gdal channel. > > What should we do: > > - give up with IRC at all, and just use the Slack ch