getPoints: Get the table of point coordinates

Description Usage Arguments Details Value See Also Examples

Description

Get tabular information of the point coordinates.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S4 method for signature 'ANY'
getPoints(x)

## S4 method for signature 'geom'
getPoints(x)

## S4 method for signature 'Spatial'
getPoints(x)

## S4 method for signature 'sf'
getPoints(x)

## S4 method for signature 'Raster'
getPoints(x)

## S4 method for signature 'matrix'
getPoints(x)

Arguments

x

the object from which to derive the point coordinates.

Details

This table contains three columns (x, y and fid) and as many rows as there are points. In case x is a polygon, the last point of each distinct feature is a duplicate of its first point. In case x has the type 'grid', all layers are summarised into one tibble, as several layers must have the same extent and resolution, so that each point occurrs in each layer, merely with a different, layer-specific value.

Value

A tibble of the point coordinates of x.

See Also

Other getters: getCRS(), getCols(), getExtent(), getFeatures(), getGroups(), getHistory(), getLayers(), getNames(), getRes(), getRows(), getType(), getWindow()

Examples

1
2
3
4
5
6
7
8
getPoints(x = gtGeoms$polygon)

getPoints(x = gtGeoms$point)

# for raster objects, the @point slot is extracted from its compact form
gtGeoms$grid$continuous@point

getPoints(x = gtGeoms$grid$continuous)

geometr documentation built on March 30, 2021, 5:13 p.m.