2018-11-27 13:35:49 +03:00
|
|
|
diff --git a/src/mjolnir/valhalla_build_admins.cc b/src/mjolnir/valhalla_build_admins.cc
|
|
|
|
index 3f675a231..cc211ce42 100644
|
|
|
|
--- a/src/mjolnir/valhalla_build_admins.cc
|
|
|
|
+++ b/src/mjolnir/valhalla_build_admins.cc
|
2019-03-11 16:56:58 +03:00
|
|
|
@@ -141,7 +141,9 @@ int polygondata_comparearea(const void*
|
2018-11-27 13:35:49 +03:00
|
|
|
std::vector<std::string> GetWkts(std::unique_ptr<Geometry>& mline) {
|
|
|
|
std::vector<std::string> wkts;
|
|
|
|
|
|
|
|
-#if 3 == GEOS_VERSION_MAJOR && 6 <= GEOS_VERSION_MINOR
|
|
|
|
+#if 3 == GEOS_VERSION_MAJOR && 7 <= GEOS_VERSION_MINOR
|
|
|
|
+ GeometryFactory::Ptr gf = GeometryFactory::create();
|
|
|
|
+#elif 3 == GEOS_VERSION_MAJOR && 6 <= GEOS_VERSION_MINOR
|
2019-03-11 16:56:58 +03:00
|
|
|
auto gf = GeometryFactory::create();
|
2018-11-27 13:35:49 +03:00
|
|
|
#else
|
|
|
|
std::unique_ptr<GeometryFactory> gf(new GeometryFactory());
|
2019-03-11 16:56:58 +03:00
|
|
|
@@ -420,7 +422,9 @@ void BuildAdminFromPBF(const boost::prop
|
2018-11-27 13:35:49 +03:00
|
|
|
uint32_t count = 0;
|
|
|
|
uint64_t nodeid;
|
|
|
|
bool has_data;
|
|
|
|
-#if 3 == GEOS_VERSION_MAJOR && 6 <= GEOS_VERSION_MINOR
|
|
|
|
+#if 3 == GEOS_VERSION_MAJOR && 7 <= GEOS_VERSION_MINOR
|
|
|
|
+ GeometryFactory::Ptr gf = GeometryFactory::create();
|
|
|
|
+#elif 3 == GEOS_VERSION_MAJOR && 6 <= GEOS_VERSION_MINOR
|
2019-03-11 16:56:58 +03:00
|
|
|
auto gf = GeometryFactory::create();
|
2018-11-27 13:35:49 +03:00
|
|
|
#else
|
|
|
|
std::unique_ptr<GeometryFactory> gf(new GeometryFactory());
|