[Git][debian-gis-team/gdal][experimental] 5 commits: New upstream version 3.11.2~rc2+dfsg

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Wed Jul 9 04:40:29 BST 2025



Bas Couwenberg pushed to branch experimental at Debian GIS Project / gdal


Commits:
67516919 by Bas Couwenberg at 2025-07-09T05:22:16+02:00
New upstream version 3.11.2~rc2+dfsg
- - - - -
b42cee42 by Bas Couwenberg at 2025-07-09T05:22:50+02:00
Update upstream source from tag 'upstream/3.11.2_rc2+dfsg'

Update to upstream version '3.11.2~rc2+dfsg'
with Debian dir d41a2ac2825fe398e93e84179ee9866c3bddf381
- - - - -
6680e985 by Bas Couwenberg at 2025-07-09T05:23:48+02:00
New upstream release candidate.

- - - - -
8ad6f532 by Bas Couwenberg at 2025-07-09T05:26:20+02:00
Update symbols for other architectures.

- - - - -
c337462f by Bas Couwenberg at 2025-07-09T05:26:42+02:00
Set distribution to experimental.

- - - - -


4 changed files:

- NEWS.md
- apps/gdallocationinfo.cpp
- debian/changelog
- debian/libgdal37.symbols


Changes:

=====================================
NEWS.md
=====================================
@@ -26,6 +26,7 @@ GDAL 3.11.2 is a bugfix release.
 ### Raster utilities
 
 * gdalwarp: fix reprojecting to COG (3.11.0 regression)
+* gdallocationinfo: handle properly nodata values (3.10.0 regression fix)
 
 ### Raster drivers
 


=====================================
apps/gdallocationinfo.cpp
=====================================
@@ -577,11 +577,25 @@ MAIN_START(argc, argv)
             const bool bIsComplex = CPL_TO_BOOL(
                 GDALDataTypeIsComplex(GDALGetRasterDataType(hBand)));
 
-            CPLErr err;
-            err = GDALRasterInterpolateAtPoint(hBand, dfPixelToQuery,
-                                               dfLineToQuery, eInterpolation,
-                                               &adfPixel[0], &adfPixel[1]);
-
+            CPLErrorReset();
+            CPLErr err = GDALRasterInterpolateAtPoint(
+                hBand, dfPixelToQuery, dfLineToQuery, eInterpolation,
+                &adfPixel[0], &adfPixel[1]);
+
+            // GDALRasterInterpolateAtPoint() returns false on nodata
+            bool bIsNoData = false;
+            if (err != CE_None && CPLGetLastErrorType() == CE_None)
+            {
+                int bHasNoData = FALSE;
+                const double dfNoData =
+                    GDALGetRasterNoDataValue(hBand, &bHasNoData);
+                if (bHasNoData)
+                {
+                    bIsNoData = true;
+                    adfPixel[0] = adfPixel[1] = dfNoData;
+                    err = CE_None;
+                }
+            }
             if (err == CE_None)
             {
                 CPLString osValue;
@@ -628,7 +642,7 @@ MAIN_START(argc, argv)
                               "Unable to get raster scale." );
                 }
 #endif
-                if (dfOffset != 0.0 || dfScale != 1.0)
+                if (!bIsNoData && (dfOffset != 0.0 || dfScale != 1.0))
                 {
                     adfPixel[0] = adfPixel[0] * dfScale + dfOffset;
 
@@ -651,7 +665,19 @@ MAIN_START(argc, argv)
                         printf("    Descaled Value: %s\n", osValue.c_str());
                 }
             }
-
+            else
+            {
+                nRetCode = 1;
+                if (bAsXML)
+                {
+                    osXML += "<IOError/>";
+                }
+                else if (bValOnly)
+                {
+                    if (i > 0)
+                        printf("%s", osFieldSep.c_str());
+                }
+            }
             if (bAsXML)
                 osXML += "</BandReport>";
         }


=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+gdal (3.11.2~rc2+dfsg-1~exp1) experimental; urgency=medium
+
+  * New upstream release candidate.
+  * Update symbols for other architectures.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Wed, 09 Jul 2025 05:26:25 +0200
+
 gdal (3.11.2~rc1+dfsg-1~exp1) experimental; urgency=medium
 
   * New upstream release candidate.


=====================================
debian/libgdal37.symbols
=====================================
@@ -1,4 +1,4 @@
-# SymbolsHelper-Confirmed: 3.11.2~rc1 amd64
+# SymbolsHelper-Confirmed: 3.11.2~rc1 amd64 m68k
 libgdal.so.37 #PACKAGE# #MINVER#
 * Build-Depends-Package: libgdal-dev
  BSBClose at Base 1.8.0
@@ -8931,6 +8931,7 @@ libgdal.so.37 #PACKAGE# #MINVER#
  (optional=templinst|arch=m68k)_ZNSt6vectorISt4pairIfxESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_ at Base 3.10.0
  (optional=templinst|arch=!m68k)_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_appendIJS1_EEEvDpOT_ at Base 3.9.2
  (optional=templinst|arch=m68k)_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_ at Base 3.10.0
+ (optional=templinst|arch=m68k)_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJiiEEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_ at Base 3.11.2~rc1
  (optional=templinst|arch=m68k)_ZNSt6vectorISt4pairIixESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_ at Base 3.10.0
  (optional=templinst|arch=m68k)_ZNSt6vectorISt4pairIjcESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_ at Base 3.11.0
  (optional=templinst|subst)_ZNSt6vectorISt4pairIjjESaIS1_EE17_M_default_appendE{size_t}@Base 3.4.2



View it on GitLab: https://salsa.debian.org/debian-gis-team/gdal/-/compare/1091de11e70a130bee85643c316f40e2a56f6fd1...c337462fb43e518895568b4dc764359d5f005c85

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/gdal/-/compare/1091de11e70a130bee85643c316f40e2a56f6fd1...c337462fb43e518895568b4dc764359d5f005c85
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20250709/f02bc014/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list