g_centroid | R Documentation |
g_centroid()
returns a vector of point X, point Y.
g_centroid(wkt)
wkt |
Character. OGC WKT string for a simple feature geometry. |
The GDAL documentation states "This method relates to the SFCOM
ISurface::get_Centroid()
method however the current implementation based
on GEOS can operate on other geometry types such as multipoint, linestring,
geometrycollection such as multipolygons. OGC SF SQL 1.1 defines the
operation for surfaces (polygons). SQL/MM-Part 3 defines the operation for
surfaces and multisurfaces (multipolygons)."
Numeric vector of length 2 containing the centroid (X, Y).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.