get_coords | R Documentation |
An extended version of sf::st_coordinates that supports binding coordinates to the object, optionally dropping the geometry, and returning wkt or a point on surface (geometry = "surface point") instead of the centroid.
get_coords( x, coords = NULL, geometry = NULL, crs = NULL, keep_all = TRUE, drop = TRUE ) get_minmax(x, crs = NULL, keep_all = TRUE, drop = TRUE)
x |
|
coords |
Column names to use for coordinates in results, Default: |
geometry |
geometry to use for coordinates "centroid", "surface point",
or alternatively "wkt"; defaults to |
crs |
Coordinate reference system to use for coordinates; defaults to |
keep_all |
If |
drop |
If |
get_minmax get a bounding box for each feature (or group of features) appends the xmin, ymin, xmax, and ymax values for each feature to the simple feature object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.