is.lonlat: Test if a coordinate reference system is unprojected

is.lonlat,character-methodR 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 GRasters and GVectors, 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 GRaster, GVector, GRegion, GLocation, SpatRaster, SpatVector, or sf object).

Value

Logical (TRUE if unprojected, FALSE otherwise).

See Also

terra::is.lonlat()


adamlilith/fasterRaster documentation built on Dec. 21, 2024, 2:04 a.m.