projpar: Return a parameter used in a WRT projection

Description Usage Arguments Value Note Author(s) Examples

Description

Return the value of a parameter (or the name) present in the WKT of the given proj4string.

Usage

1
2
3
projpar(proj4string, par, abort = FALSE)

projname(proj4string, abort = FALSE)

Arguments

proj4string

The proj4string to be named (a character or a CRS object).

par

Character corresponding to the parameter name.

abort

logical: if TRUE, the function aborts in case an invalid proj4string is passed; if FALSE (default), the function returns NA, and a warning is shown.

Value

A character with the content of the parameter (NULL if the parameter is not recognised) or the name of the projection, and an attribute proj4string with the input projection checked using sf::st_crs().

Note

Python is needed.

Author(s)

Luigi Ranghetti, phD (2017) ranghetti.l@irea.cnr.it

Examples

1
2
3
4
5
6
7
8
## Not run: 
projpar("+init=epsg:4326", "Unit")

## End(Not run)
## Not run: 
projname("+init=epsg:4326")

## End(Not run)

pobsteta/theia2r documentation built on May 25, 2019, 2:21 p.m.