Scott,

Le 12/08/2024 à 02:19, Scott via gdal-dev a écrit :
Looking at the news file, specifically about gdallocationinfo:

gdallocationinfo: avoid extra newline character in -valonly mode if coordinate is outside raster extent (3.9.0 regression)

Having that new-line character is imperative.

The fix does what you describe (cf tests added in https://github.com/OSGeo/gdal/commit/c308cf3d9a59c9cdf2916585de273cdf54ab9bb4). The issue in 3.9.0 and 3.9.1 was that there were 2 newlines instead of a single one.

| Ideally, it would be real nice to have an option that returns the coord and value on a single line.

That's the -E echo mode. Except I now realize it doesn't work as expected in -geoloc/-wgs84 mode, where it reports the pixel, line value, whereas the documentation and example suggests that it should be the (non-transformed) input coordinates. I've queued a fix for that in https://github.com/OSGeo/gdal/pull/10586 . It will probably be in 3.9.3, unless there's a RC2

Even


--
http://www.spatialys.com
My software is free, but my time generally not.

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to