[gdal-dev] gdalbuildvrt Max Value / Pixel Function

Abdul Raheem Siddiqui abdulraheemsiddiqui at gmail.com
Thu Feb 13 13:08:43 PST 2025


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 <dbaston at gmail.com> wrote:

> 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 would be
> to prepare the VRT yourself.
>
> Dan
>
> On Thu, Feb 13, 2025 at 3:12 PM Abdul Raheem Siddiqui via gdal-dev <
> gdal-dev at lists.osgeo.org> wrote:
>
>> 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 behavior but just checking to see if
>> there is a direct way to specify this in gdalbuildvrt command line call or
>> do one has to manually inject this in VRT xml.
>>
>> On the same note does the new gdaltileindex provide this functionality of
>> selecting the max value for each pixel out of the box?
>>
>> Regards,
>> Abdul Raheem Siddiqui
>> ERT Inc.
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250213/85bafe9c/attachment.htm>


More information about the gdal-dev mailing list