[gdal-dev] How to locate where the raster min and max values are?

Nyall Dawson nyall.dawson at gmail.com
Mon Nov 4 16:50:59 PST 2024


>
> I would like to know the georeferenced coordinates of the min and max
values of a DEM file. Even better if I could forward them into a vector
file. If the minimum or maximum happens to be on a flat area like seabed I
would be happy with the first pixel at the moment.
>
> The task feels rather simple and I was sure that someone has already made
an utility or a QGIS plugin, but all I have found yet is for R

I've submitted a processing tool for QGIS 3.42 to do this here:
https://github.com/qgis/QGIS/pull/59332 . This uses Even's new GDAL api so
should be super-efficient & fast to calculate. 🥳

Thanks for raising this interesting discussion, a lot of nice things have
come out of this!

Nyall
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20241105/ade472b6/attachment.htm>


More information about the gdal-dev mailing list