% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geo.R
\name{geo_extent}
\alias{geo_extent}
\title{Compute bounding boxes for each feature in an sf object}
\usage{
geo_extent(x, crs = 4326)
}
\arguments{
\item{x}{An \code{sf} object (POLYGON or MULTIPOLYGON) for which to compute bounding boxes.}

\item{crs}{Numeric or sf CRS. Target CRS used before computation (default 4326).}
}
\value{
A \code{data.frame} with one row per feature:
\describe{
\item{left}{xmin}
\item{bottom}{ymin}
\item{right}{xmax}
\item{top}{ymax}
}
}
\description{
Computes one bounding box per geometry in an \code{sf} object.
}
\details{
\itemize{
\item The function first validates the input with \code{\link[=geo_object_check]{geo_object_check()}}.
\item Transforms the object to the target CRS before computing bounding boxes.
\item CRS and units are inherited from the input \code{sf} object.
}
}
\keyword{internal}
