diff --git a/extractor.cpp b/extractor.cpp index 900c6b5ce..2052f00d5 100644 --- a/extractor.cpp +++ b/extractor.cpp @@ -188,6 +188,8 @@ int main(int argc, char *argv[]) if (pos != std::string::npos) { file_has_pbf_format = true; + } else { + pos = output_file_name.find(".osm.xml"); } } if (pos == std::string::npos)