.locationFind,missing-method {fasterRaster} | R Documentation |
Match CRS of a GSpatial object and an existing "GRASS" location
Description
The function searches the set of available GRASS "projects" (previously known as "locations") for one that has a coordinate reference system matching a GSpatial
object. If none are found, or if no connection with GRASS has yet been made, then it returns NULL
. Otherwise, it returns either the index or the name of the matching location.
Usage
## S4 method for signature 'missing'
.locationFind(x, return = "name")
## S4 method for signature 'GLocation'
.locationFind(x, return = "name", match = "name")
## S4 method for signature 'SpatRaster'
.locationFind(x, return = "name", match = "name")
## S4 method for signature 'SpatVector'
.locationFind(x, return = "name", match = "name")
## S4 method for signature 'sf'
.locationFind(x, return = "name", match = "name")
## S4 method for signature 'character'
.locationFind(x, return = "name", match = "name")
Arguments
x |
Either:
|
return |
Either:
|
match |
Character: Method used to find the location. If |
Value
Character, integer, or NULL
(if no match is found).