[gdal-dev] GDAL 3.9.2 release candidate available

Scott public at postholer.com
Sun Aug 11 18:07:32 PDT 2024


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

On 8/11/24 17:19, Scott via gdal-dev wrote:
> 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. For instance, say I have a 
> file called coords.txt with the values:
> 
> -122.999312 37.341868
> -122.999089 27.573119
> -122.998763 18.92525
> -122.998927 32.975703
> 
> Then I run the command:
> gdallocationinfo -geoloc -valonly raster.tif < coords.txt > results.txt
> 
> ...with results.txt:
> 0
> 767
> 
> 327
> 
> The 3rd coordinate is outside the raster extent, it's empty or null. I 
> will still get 4 results, which is very important. If I now try to 
> append results.txt to coords.txt, I get a 1 to 1 relationship:
> 
> paste -d " " coords1.txt results.txt |tr " " ","
> -122.999312,37.341868,0
> -122.999089,27.573119,767
> -122.998763,18.92525,
> -122.998927,32.975703,327
> 
> The problem is, if that newline is removed, results.txt will have 1 less 
> line than coords.txt. This is bad.
> 
> Thanks for listening!
> 
> 
> On 8/11/24 10:00, Even Rouault via gdal-dev wrote:
>> Hi,
>>
>> I have prepared a GDAL/OGR 3.9.2 release candidate.
>>
>> Pick up an archive among the following ones (by ascending size):
>>
>>    https://download.osgeo.org/gdal/3.9.2/gdal-3.9.2rc1.tar.xz
>>    https://download.osgeo.org/gdal/3.9.2/gdal-3.9.2rc1.tar.gz
>>    https://download.osgeo.org/gdal/3.9.2/gdal392rc1.zip
>>
>> A snapshot of the gdalautotest suite is also available:
>>
>> https://download.osgeo.org/gdal/3.9.2/gdalautotest-3.9.2rc1.tar.gz
>>    https://download.osgeo.org/gdal/3.9.2/gdalautotest-3.9.2rc1.zip
>>
>> The NEWS file is here:
>>
>>    https://github.com/OSGeo/gdal/blob/v3.9.2RC1/NEWS.md
>>
>> Best regards,
>>
>> Even
>>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list