Package: liblas / 1.8.1-10

0001-gt_citation.cpp-fix-compilation-against-GDAL-2.3.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: gt_citation.cpp: fix compilation against GDAL 2.3
 .
 The call to GetAngularUnits(NULL) is ambiguous since there is now
     double      GetAngularUnits( char ** ) const CPL_WARN_DEPRECATED("Use GetAngularUnits(const char**) instead");
     double      GetAngularUnits( const char ** = nullptr ) const;
     double      GetAngularUnits( std::nullptr_t ) const
 .
 But GetAngularUnits(NULL) doesn't match GetAngularUnits( std::nullptr_t )
 .
 This change is also compatible of previous GDAL version
Author: Even Rouault <even.rouault@spatialys.com>
Origin: https://github.com/libLAS/libLAS/commit/ec10e274ee765aa54e7c71c8b44d2c7494e63804

--- a/src/gt_citation.cpp
+++ b/src/gt_citation.cpp
@@ -387,10 +387,10 @@ void SetGeogCSCitation(GTIF * psGTIF, OG
         osCitation += primemName;
         bRewriteGeogCitation = TRUE;
 
-        double primemValue = poSRS->GetPrimeMeridian(NULL);
+        double primemValue = poSRS->GetPrimeMeridian();
         if(angUnitName && !EQUAL(angUnitName, "Degree"))
         {
-            double aUnit = poSRS->GetAngularUnits(NULL);
+            double aUnit = poSRS->GetAngularUnits();
             primemValue *= aUnit;
         }
         GTIFKeySet( psGTIF, GeogPrimeMeridianLongGeoKey, TYPE_DOUBLE, 1,