# getPoints: Get the table of point coordinates In geometr: Generate and Modify Interoperable Geometric Shapes

## 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`.

Other getters: `getCRS()`, `getCols()`, `getExtent()`, `getFeatures()`, `getGroups()`, `getHistory()`, `getLayers()`, `getNames()`, `getRes()`, `getRows()`, `getType()`, `getWindow()`
 ```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) ```