I've a PostgreSQL schema containing two PostGIS tables ('points' and 'polygons'):
CREATE TABLE points ( gid serial NOT NULL, geom geometry(point, SRID), attribute_1 varchar(255), attribute_2 varchar(255), CONSTRAINT points_pkey PRIMARY KEY (gid) ); CREATE TABLE polygons ( gid serial NOT...