st_crs2: Retrieve coordinate reference system from sf or sfc object

Description Usage Arguments Details Value Note Author(s) Examples

Description

This function is a wrapper for sf::st_crs, unless accepting also UTM timezones (see details) and threating numeric character strings as integers.

Usage

1

Arguments

x

numeric, character, or object of class sf or sfc

...

other parameters passed to sf::st_crs.

Details

See sf::st_crs for details.

Value

If x is 0 < numeric <= 60, return crs object for UTM timezone x N; if x is numeric > 60, return crs object for SRID x; if x is character in the form nn, nnN or nnS, being nn a number 0 < nn <= 60, return crs object for UTM timezone x N or x S (N if not specified); if x is a different character, return crs object for proj4string x; if wkt is given, return crs object for well-known-text representation wkt; if x is of class sf or sfc, return its crs object.

Note

License: GPL 3.0

Author(s)

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

Examples

1
2
3
4
5
6
st_crs2("+init=epsg:32609")
st_crs2(32609)
st_crs2(9)
st_crs2("09")
st_crs2("9N")
st_crs2("09S")

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