aRTlayer-getRelation {aRT} | R Documentation

## Spatial Relations

### Description

Returns elements of a given layer that satisfy a given spatial relation. The spatial relation can refer to objects of a different layer.

### Usage

    ## S4 method for signature 'aRTlayer':
    getRelation(object, relation=c("contains", "overlaps", "crosses", "disjoint", "touches", "within", "intersects", "equals", "covers", "coveredby"), layer=object, ID)

### Arguments

`object` | The target layer.
`relation` | One of "contains", "coveredby", "covers", "crosses", "disjoint", "equals", "intersects", "overlaps", "touches", or "within"
`layer` | The layer over which the spatial relations will be computed.
`ID` | The selected ids of layer to be used. If `NULL`, all the elements of layer will be used.

### Author(s)

Pedro Ribeiro de Andrade

### See Also

See `aRTlayer-class` to the description of this class.

[Package aRT version 1.7-1 Index]