pgLength: Obtains the length of a LINE geometry

Description Usage Arguments Value Author(s)

Description

This function obtains the length of a LINE geometry in a postgreSQL database.

Usage

1
pgLength(con, vecTable, geom = NULL, addColumn = FALSE)

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

addColumn

TRUE or FALSE. Indicates if a column with the length should be permanently added to the table in the database

Value

A data.frame with the length of each object in the original table

Author(s)

Bruno Silva


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