Get the table of point coordinates
Get tabular information of the point coordinates.
getPoints(x) ## 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)
x |
the object from which to derive the point coordinates. |
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.
A tibble of the point coordinates of x
.
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.