Description Usage Arguments Value Author(s)
This function obtains the centroid of a geometry in a postgreSQL database.
1 | pgCentroid(con, vecTable, geom = NULL, newTable = NULL)
|
con |
An object of class "pgConnect" generated by pgConnect() |
vecTable |
Name of vectorial table in the database |
geom |
A string with the name of a geometry type column. Only required if the table has more than 1 geometry columns |
newTable |
TRUE or FALSE. Indicates if a table with the buffer should be permanently added to the database |
A SpatialPointsDataFrame object with the centroid of each object
Bruno Silva
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.