pgTrajViewParams: Computes the trajectory parameters (as in ltraj) for a pgtraj...

Description Usage Arguments Value Author(s)

View source: R/utils.R

Description

Computes the trajectory parameters (as in ltraj) for a pgtraj and creates a view for the pgtraj. The views are always named as 'parameters_<pgtraj_name>'.

Usage

1
pgTrajViewParams(conn, schema, pgtraj, epsg, db = TRUE)

Arguments

conn

Connection object created with RPostgreSQL

schema

String. Name of the schema that stores or will store the pgtraj data model.

pgtraj

String. Name of the pgtraj.

epsg

Numeric. EPSG code of the relocation geometry.

db

Boolean. A switch that controls the parameters view creation depending on source of data (R or PostgreSQL). If TRUE, raw data input from a database table is assumed. In this case all parameters will be computed. If FALSE, it is assumed that an ltraj was input from R with already computed parameters. In this case R2n and rel.angle will not be recomputed, but reused from the ltraj.

Value

TRUE on success, otherwise warning/error

Author(s)

Balázs Dukai


rpostgisLT documentation built on June 20, 2017, 5:01 p.m.