[gdal-dev] Mass operations to raster block?
Even Rouault
even.rouault at spatialys.com
Mon May 6 12:18:37 PDT 2024
Hi Andrew,
no, there's no such support in GDAL itself. That could potentially be
done using VRT and pixel functions, but I'm not sure that would qualify
as "optimal", and that would require a bit of setup. You're probably
better instantiating your for(y: ...) for (x: ...) loop manually with
the operation you want to apply
xtensor (https://xtensor.readthedocs.io/en/latest/operator.html) (in a
nutshell, this is similar to numpy but in C++) could potentially be used
in combination of GDAL, but I don't think we want to drag this
dependency in GDAL itself
Even
Le 06/05/2024 à 20:43, Andrew Bell via gdal-dev a écrit :
> Hi,
>
> Is there any support in the library for applying some arithmetic
> operations to all entries in a block? For example, can I optimally
> subtract or add some scalar to every entry?
>
> Thanks,
>
> --
> Andrew Bell
> andrew.bell.ia at gmail.com
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240506/1d7e5890/attachment.htm>
More information about the gdal-dev
mailing list