rpostgis (version 1.4.3)

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

geom

a geometry or geography column name

namechar

A table name formatted for use in a query