Skip to content

normalize_crs() #33

Description

@rellimylime

#29 (comment)
#' Normalize a CRS specification
#'
#' Accepts CRS in several common formats and returns a terra-recognized form.
#'
#' @PARAM crs One of: an integer EPSG code (e.g. \code{4326}); a character
#' string (e.g. \code{"EPSG:4326"}, \code{"4326"}, a PROJ string, or a WKT
#' string); or a SpatVector, SpatRaster, or SpatExtent whose CRS will be
#' pulled. Pass \code{NULL} to return \code{NULL}.
#'
#' @return A length-1 logical with \code{"status"}, \code{"message"}, and
#' \code{"crs"} attributes. On success, \code{"crs"} contains the
#' normalized CRS string.
#'
#' @Keywords internal

Metadata

Metadata

Labels

internal-helperNot exported, tracked in parent issueneeds-decisionRequires resolution to progress

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions