is.lonlat,character-method {fasterRaster} | R Documentation |
Test if a coordinate reference system is unprojected
Description
is.lonlat()
attempts to determine if a coordinate reference system is unprojected (e.g., WGS84, NAD83, NAD27, etc.). For GRaster
s and GVector
s, the function should always be correct. For WKT character strings and sf
vectors, it does this by looking for the "CONVERSION[" tag in the WKT string (or the object's WKT string), and if it finds one, returns FALSE
. This may not be truthful in all cases.
Usage
## S4 method for signature 'character'
is.lonlat(x)
## S4 method for signature 'GLocation'
is.lonlat(x)
## S4 method for signature 'sf'
is.lonlat(x)
Arguments
x |
A WKT coordinate reference string or an object from which on can be obtained (e.g., a |
Value
Logical (TRUE
if unprojected, FALSE
otherwise).
See Also
[Package fasterRaster version 8.4.1.0 Index]