mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
graphics/mapnik: fix build with gdal 3.12, reported by aja@ and sthen@
This commit is contained in:
@@ -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)
|
||||
{
|
||||
Reference in New Issue
Block a user