[gdal-dev] gdalbuildvrt Max Value / Pixel Function

2025-02-13 Thread Abdul Raheem Siddiqui via gdal-dev
Hello, I am looking for functionality to create a VRT of multiple rasters where the VRT pixel value is the maximum of underlying rasters pixel values. I found out that we have pixel functions https://lists.osgeo.org/pipermail/gdal-dev/2016-September/045134.html that we can add to VRTs to get this

Re: [gdal-dev] Debugging mask copy issues when using Band interleaved COGs

2025-02-13 Thread Even Rouault via gdal-dev
Owen, Please create a ticket about that. Even Le 13/02/2025 à 04:40, Owen Glofcheski via gdal-dev a écrit : Hey all, I work with Kurt Schwehr, and we've been debugging failures where an explicit mask isn't preserved through a CreateCopy operation to create a COG through the GTiff driver at H

Re: [gdal-dev] Problem with warping into existing TIF

2025-02-13 Thread Even Rouault via gdal-dev
Tim, Reviewing the warping logic, I see we have support for a *input* mask, but not creating/updating an *output* mask. AFAICS, there isn't any particular strong reason not to have support for that. Likely just a few hours of coding away. Your best workaround is to generate an output with an

Re: [gdal-dev] gdalbuildvrt Max Value / Pixel Function

2025-02-13 Thread Daniel Baston via gdal-dev
> > Any preliminary documentation on this? > Preliminary, yes: https://gdal--11850.org.readthedocs.build/en/11850/programs/gdal_raster_calc.html (from https://github.com/OSGeo/gdal/pull/11850) Dan ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https

Re: [gdal-dev] gdalbuildvrt Max Value / Pixel Function

2025-02-13 Thread Scott via gdal-dev
WOW! Game changer. Any preliminary documentation on this? On 2/13/25 13:00, Daniel Baston via gdal-dev wrote: the next release of GDAL should have a replacement "gdal_calc" that would take multiple inputs and write a VRT that applies an expression to those inputs ___

Re: [gdal-dev] gdalbuildvrt Max Value / Pixel Function

2025-02-13 Thread Daniel Baston via gdal-dev
Hi Abdul, For the specific case of multiple rasters that share the same extent, the next release of GDAL should have a replacement "gdal_calc" that would take multiple inputs and write a VRT that applies an expression to those inputs ("max", in your case). In the meantime, I think your best option

Re: [gdal-dev] gdalbuildvrt Max Value / Pixel Function

2025-02-13 Thread Abdul Raheem Siddiqui via gdal-dev
Thanks for your reply, my rasters are not sharing extent but some do overlap. How about GTI, Does that provide this functionality? Do you know. On Thu, Feb 13, 2025, 4:00 PM Daniel Baston wrote: > Hi Abdul, > > For the specific case of multiple rasters that share the same extent, the > next rel