View source: R/pbf_header_reader.R
| read_pbf_header_bbox | R Documentation |
Extracts the bbox from the HeaderBlock of an OSM PBF file using pure R. This reads only the first header blob (OSMHeader), not the data blocks.
read_pbf_header_bbox(pbf_file)
pbf_file |
Path to an .osm.pbf file |
Named list with center (c(lng, lat)) and bbox (c(lng_min, lat_min, lng_max, lat_max))
or NULL if bbox not found or file invalid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.