diff --git a/lanelet2_io/src/OsmHandlerLoad.cpp b/lanelet2_io/src/OsmHandlerLoad.cpp index 4e1f6a63..4b5c7dba 100644 --- a/lanelet2_io/src/OsmHandlerLoad.cpp +++ b/lanelet2_io/src/OsmHandlerLoad.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include #include diff --git a/lanelet2_io/src/OsmHandlerWrite.cpp b/lanelet2_io/src/OsmHandlerWrite.cpp index a397ea48..357c5c8f 100644 --- a/lanelet2_io/src/OsmHandlerWrite.cpp +++ b/lanelet2_io/src/OsmHandlerWrite.cpp @@ -1,3 +1,4 @@ +#include #include #include @@ -296,7 +297,8 @@ void testAndPrintLocaleWarning(ErrorMessages& errors) { } } // namespace -void OsmWriter::write(const std::string& filename, const LaneletMap& laneletMap, ErrorMessages& errors, const io::Configuration& params) const { +void OsmWriter::write(const std::string& filename, const LaneletMap& laneletMap, ErrorMessages& errors, + const io::Configuration& params) const { testAndPrintLocaleWarning(errors); auto file = toOsmFile(laneletMap, errors, params); auto doc = osm::write(*file, params); @@ -306,7 +308,8 @@ void OsmWriter::write(const std::string& filename, const LaneletMap& laneletMap, } } -std::unique_ptr OsmWriter::toOsmFile(const LaneletMap& laneletMap, ErrorMessages& errors, const io::Configuration& params) const { +std::unique_ptr OsmWriter::toOsmFile(const LaneletMap& laneletMap, ErrorMessages& errors, + const io::Configuration& params) const { return ToFileWriter::writeMap(laneletMap, projector(), errors, params); } } // namespace io_handlers