pub fn scan_max_node_id(pbf_path: &Path) -> Result<u64, GeolithError>Expand description
Find the maximum node ID of a PBF file.
A sorted PBF is answered by sorted_max_node_id without decoding the
node blobs; any other PBF gets a parallel scan of every node, which for
a planet PBF takes 2–3 minutes. The result sizes the node store, so a
small extract does not allocate a 97 GB store.
An id above MAX_SANE_NODE_ID is an error, not a cap.
§Errors
Returns an error if the PBF file can’t be read.