Skip to content
Snippets Groups Projects
Commit 60ef244b authored by Jochen Topf's avatar Jochen Topf
Browse files

Changes for newer GEOS versions

parent e2e43682
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,8 @@ namespace Osmium {
*/
inline geos::geom::GeometryFactory* geos_geometry_factory() {
static geos::geom::PrecisionModel pm;
static geos::geom::GeometryFactory factory(&pm, -1);
return &factory;
static auto factory = geos::geom::GeometryFactory::create(&pm, -1);
return factory.get();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment