pgCentroid: Obtains the centroid of a geometry

Description Usage Arguments Value Author(s)

Description

This function obtains the centroid of a geometry in a postgreSQL database.

Usage

1
pgCentroid(con, vecTable, geom = NULL, newTable = NULL)

Arguments

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

Value

A SpatialPointsDataFrame object with the centroid of each object

Author(s)

Bruno Silva


berdinazzi/easyPostGIS documentation built on May 12, 2019, 3:04 p.m.