locationRestore: Revert to a previously-created "GRASS" "location"

.locationRestore,character-methodR Documentation

Revert to a previously-created "GRASS" "location"

Description

This function resets the connection to a previously-created GRASS "location". The session must have been already created using fast() in the current R session. This function is typically only of use to developers.

Usage

## S4 method for signature 'character'
.locationRestore(x)

## S4 method for signature 'integer'
.locationRestore(x)

## S4 method for signature 'numeric'
.locationRestore(x)

## S4 method for signature 'GSpatial'
.locationRestore(x)

Arguments

x

Either:

  • A character: Name of the "location" in GRASS.

  • An integer: Index of the "location" in .fasterRaster$locations.

  • A GSpatial object (usually a GRaster or GVector).

Any of these can be found using .locationFind().

Value

An object of class GLocation (invisibly) if successful. An error will likely result if not.


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