% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pbf_header_reader.R
\name{.get_pbf_extent}
\alias{.get_pbf_extent}
\title{Get PBF Bounding Box with Fallbacks}
\usage{
.get_pbf_extent(pbf_file)
}
\arguments{
\item{pbf_file}{Path to an .osm.pbf file}
}
\value{
Named list with \code{center} (c(lng, lat)) and \code{bbox} (c(lng_min, lat_min, lng_max, lat_max))
or NULL if bbox could not be determined
}
\description{
Tries multiple methods to extract the bounding box from an OSM PBF file:
\enumerate{
\item Pure R header parsing (fastest, no dependencies)
\item osmium CLI (if available in PATH)
\item sf sampling (if sf is installed, reads first 10 features)
}
}
\keyword{internal}
