Does Overpass API support importing from planet.pbf?
Specifically, https://planet.openstreetmap.org provides https://planet.openstreetmap.org/pbf/planet-latest.osm.pbf, which I have downloaded and am attempting to initialize the database with.
When I run:
cat "${PBF_FILE}" | "${OVERPASS_DIR}/bin/update_database" --db-dir="$DB_DIR" --compression-method=no
I get:
Reading XML file ...Parse error at line 1:
not well-formed (invalid token)
Which seems to imply that Overpass might only work with the xml variation of the data?
Overpass only understands XML but you can install osmium-tool and then do:
osmium cat -o - -f xml "${PBF_FILE}" | ....
I've implemented pbf import in my unofficial fork, see https://www.openstreetmap.org/user/mmd/diary/400113
Directly importing pbf avoids much of the overhead of processing xml data. The libosmium library that I used for the heavy lifting supports this use case quite well. It can also run parts of the processing in parallel.
For the official version, I'd also recommend osmium cat, by the way.
The @mmd-osm fork is here https://github.com/mmd-osm/Overpass-API for folks looking for it.