proj_by_name: Get proj4 strings and EPSG codes by CRS keywords.

Description Usage Arguments Value Examples

Description

Get proj4 strings and EPSG codes by CRS keywords.

Usage

1
proj_by_name(x, type = "proj4", crs = FALSE)

Arguments

x

Character. Key words to search for.

type

Either 'epsg' or 'proj4'.

crs

Logical. Should a CRS object be returned?

Value

If crs is TRUE, a CRS object. Otherwise, if type is 'epsg', a vector of EPSG codes, or if type is 'proj4', a vector of proj4 strings.

Examples

1
2
proj_by_name('gda94', type='proj4')
proj_by_name('gda94 albers', crs=TRUE)

johnbaums/things documentation built on May 19, 2019, 3:03 p.m.