wk_crs_proj_definition {wk} | R Documentation |
CRS object generic methods
Description
CRS object generic methods
Usage
wk_crs_proj_definition(crs, proj_version = NULL, verbose = FALSE)
wk_crs_projjson(crs)
## S3 method for class ''NULL''
wk_crs_proj_definition(crs, proj_version = NULL, verbose = FALSE)
## S3 method for class 'wk_crs_inherit'
wk_crs_proj_definition(crs, proj_version = NULL, verbose = FALSE)
## S3 method for class 'character'
wk_crs_proj_definition(crs, proj_version = NULL, verbose = FALSE)
## S3 method for class 'double'
wk_crs_proj_definition(crs, proj_version = NULL, verbose = FALSE)
## S3 method for class 'integer'
wk_crs_proj_definition(crs, proj_version = NULL, verbose = FALSE)
Arguments
crs |
An arbitrary R object |
proj_version |
A |
verbose |
Use |
Value
-
wk_crs_proj_definition()
Returns a string used to represent the CRS in PROJ. For recent PROJ version you'll want to return PROJJSON; however you should checkproj_version
if you want this to work with older versions of PROJ. -
wk_crs_projjson()
Returns a PROJJSON string or NA_character_ if this representation is unknown or can't be calculated.
Examples
wk_crs_proj_definition("EPSG:4326")