diff --git a/utils/mapnik-render/mapnik-render.cpp b/utils/mapnik-render/mapnik-render.cpp index e8de4d708..716cdf1fd 100644 --- a/utils/mapnik-render/mapnik-render.cpp +++ b/utils/mapnik-render/mapnik-render.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include MAPNIK_DISABLE_WARNING_PUSH #include @@ -19,13 +20,6 @@ MAPNIK_DISABLE_WARNING_PUSH MAPNIK_DISABLE_WARNING_POP #include -#if __cplusplus >= 201703L -#include -namespace fs = std::filesystem; -#else -#include -namespace fs = boost::filesystem; -#endif BOOST_FUSION_ADAPT_STRUCT(mapnik::box2d, (double, minx_)(double, miny_)(double, maxx_)(double, maxy_)) @@ -100,7 +94,8 @@ int main(int argc, char** argv) } else { - std::clog << "please provide an xml map as first argument!" << std::endl; + std::clog << "mapnik-render: no XML map specified" << std::endl; + std::clog << "Try \"mapnik-render --help\" for more information" << std::endl; return -1; } @@ -146,7 +141,7 @@ int main(int argc, char** argv) // relative to plugins-dir try { - fs::path p(vm["plugins-dir"].as()); + mapnik::fs::path p(vm["plugins-dir"].as()); p = p.parent_path() / "fonts"; mapnik::freetype_engine::register_fonts(p.string(), true); }