% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boundary.R
\name{a5_cell_to_boundary}
\alias{a5_cell_to_boundary}
\title{Get cell boundary polygons}
\usage{
a5_cell_to_boundary(
  cell,
  format = c("wkb", "wkt"),
  closed = TRUE,
  segments = NULL
)
}
\arguments{
\item{cell}{An \link{a5_cell} vector.}

\item{format}{Character scalar, either \code{"wkb"} (default) or \code{"wkt"}.}

\item{closed}{Logical scalar; if \code{TRUE} (default) the ring is closed
(first vertex repeated at end).}

\item{segments}{Integer scalar or \code{NULL}. Number of interpolation segments
per edge for geodesic accuracy. \code{NULL} uses the default (straight edges).}
}
\value{
A \code{wk_wkt} or \code{wk_wkb} vector of polygon geometries with
\code{wk::wk_crs_longlat()} CRS.
}
\description{
Returns the boundary of each cell as a \code{\link[wk:wkt]{wk::wkt()}} or \code{\link[wk:wkb]{wk::wkb()}}
polygon geometry. Boundaries are pentagonal polygons on the WGS 84
ellipsoid.
}
\examples{
cell <- a5_lonlat_to_cell(-3.19, 55.95, resolution = 5)
a5_cell_to_boundary(cell)
a5_cell_to_boundary(cell, format = "wkt")
}
\seealso{
\code{\link[=a5_cell_to_lonlat]{a5_cell_to_lonlat()}} for cell centroids.
}
