Skip to contents

Spatial join of two layers based on largest intersection using PostGIS.

Usage

db_spatial_join_tables(
  con,
  left_names,
  right_names,
  left_table_name,
  right_table_name
)

Arguments

con

connection object to PostGIS database

left_names

columns in left table to retain

right_names

columns in right table to retains

left_table_name

name of left table created in PostGIS

right_table_name

name of right table created in PostGIS