Control: tags -1 patch

The attached patch fixes the issue.

Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
Description: Fix FTBFS with GDAL 3.12.0.
Author: Bas Couwenberg <[email protected]>

--- a/src/read_ogr.cpp
+++ b/src/read_ogr.cpp
@@ -521,7 +521,7 @@ bool SpatVector::read_ogr(GDALDataset *&
 		for (size_t i=0; i < wrnmsg.size(); i++) addWarning(wrnmsg[i]);
 	}
 
-	OGRSpatialReference *poSRS = poLayer->GetSpatialRef();
+	const OGRSpatialReference *poSRS = poLayer->GetSpatialRef();
 	if (poSRS) {
 		char *psz = NULL;
 	#if GDAL_VERSION_MAJOR >= 3
@@ -859,7 +859,7 @@ bool SpatVectorCollection::read_ogr(GDAL
 		for (size_t i=0; i < wrnmsg.size(); i++) addWarning(wrnmsg[i]);
 	}
 	std::string crs = "";
-	OGRSpatialReference *poSRS = poLayer->GetSpatialRef();
+	const OGRSpatialReference *poSRS = poLayer->GetSpatialRef();
 	if (poSRS) {
 		char *psz = NULL;
 	#if GDAL_VERSION_MAJOR >= 3

Reply via email to