diff --git a/include/osmium/io/writer.hpp b/include/osmium/io/writer.hpp index e23045ce..ba36569f 100644 --- a/include/osmium/io/writer.hpp +++ b/include/osmium/io/writer.hpp @@ -277,6 +277,9 @@ namespace osmium { m_header = options.header; + // Handle converting from .osc file into .pbf with HistoricalInformation(visible) + m_file.set_has_multiple_object_versions(m_header.has_multiple_object_versions()); + m_output = osmium::io::detail::OutputFormatFactory::instance().create_output(*options.pool, m_file, m_output_queue); std::unique_ptr compressor =