% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/constructors.R
\name{st_crs.HexGridInfo}
\alias{st_crs.HexGridInfo}
\alias{st_crs.HexData}
\title{Coordinate reference system of a grid}
\usage{
\method{st_crs}{HexGridInfo}(x, ...)

\method{st_crs}{HexData}(x, ...)
}
\arguments{
\item{x}{A HexGridInfo or HexData object}

\item{...}{Passed on to \code{sf::st_crs()}}
}
\value{
An object of class \code{crs}, as \code{sf::st_crs()} returns:
a list carrying the reference system in 'PROJ' and 'WKT' form. It says how
to read the coordinates that the grid's cells, centres and sf exports come
back in.
}
\description{
Reads the CRS a grid's coordinates are in, as \code{sf::st_crs()} does for
any spatial object. An Earth grid returns 'WGS84'; a grid built on another
body returns a longlat CRS on the sphere of its radius.
}
\examples{
st_crs(hex_grid(resolution = 5))
st_crs(hex_grid(resolution = 5, radius_km = "mars"))
}
