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 @@ -143,7 +143,9 @@ int polygondata_comparearea(const void* vp1, const void* vp2) { std::vector GetWkts(std::unique_ptr& mline) { std::vector 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 GeometryFactory::unique_ptr gf = GeometryFactory::create(); #else std::unique_ptr gf(new GeometryFactory()); @@ -422,7 +424,9 @@ void BuildAdminFromPBF(const boost::property_tree::ptree& pt, 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 GeometryFactory::unique_ptr gf = GeometryFactory::create(); #else std::unique_ptr gf(new GeometryFactory());