graphics/mapnik: fix build with gdal 3.12, reported by aja@ and sthen@

This commit is contained in:
landry
2025-11-09 20:05:02 +00:00
parent 8a3a133db7
commit 4baabc3f0b
@@ -0,0 +1,15 @@
Fix build with gdal 3.12
https://github.com/mapnik/mapnik/pull/4531
Index: plugins/input/ogr/ogr_datasource.cpp
--- plugins/input/ogr/ogr_datasource.cpp.orig
+++ plugins/input/ogr/ogr_datasource.cpp
@@ -378,7 +378,7 @@ void ogr_datasource::init(mapnik::parameters const& pa
}
}
mapnik::parameters& extra_params = desc_.get_extra_parameters();
- OGRSpatialReference* srs_ref = layer->GetSpatialRef();
+ OGRSpatialReference const* srs_ref = layer->GetSpatialRef();
char* srs_output = nullptr;
if (srs_ref && srs_ref->exportToProj4(&srs_output) == OGRERR_NONE)
{