osmcode / libosmium

Fast and flexible C++ library for working with OpenStreetMap data.
https://osmcode.org/libosmium/
Boost Software License 1.0
471 stars 114 forks source link

Reader class cannot record file types #372

Open Duacai opened 8 months ago

Duacai commented 8 months ago

I encountered a prompt when using OSMIUM that it does not support PBF format. This is my code: osmium:: io:: Reader reader {"/Res/OEM/planet-230925. osm. pbf"}; I have checked the source code and found that the Reader did not register any type, which caused the wrapper std:: function to be null. I am using the latest version (2.20.0). May I know how to use it? Thank you very much.

joto commented 8 months ago

https://osmcode.org/libosmium/manual.html#input-and-output