Learn R Programming

rpostgis (version 1.6.0)

pgCheckGeom: Check if geometry or geography column exists in a table, and return the column name for use in a query.

Description

Check if geometry or geography column exists in a table, and return the column name for use in a query.

Usage

pgCheckGeom(conn, name, geom)

Arguments

conn

A PostgreSQL connection

name

A table name formatted for use in a query

geom

a geometry or geography column name