Hi,
I have a directory full of osm.pbf files that I need to extract metadata from, specifically the bounding box stored in the file. I also need to use the Java programming language.
Does anyone know how to do that in Java, I’ve been looking all afternoon. While I understand that the file format, at its core, uses Google Protocol Buffers I’ve not seen anything that identifies how to extract a metadata record or at the very least the bounding box for the file.
What I’m hoping is that somewhere in the pbf data file is a header, which will have the information it. And that there is a convenient Java library to use to get it.
Any thoughts more than welcome.
With thanks.
-Corey