From 7556e43b22d168028202ce2551347f2c9273e12b Mon Sep 17 00:00:00 2001 From: Andy Eschbacher Date: Fri, 29 Apr 2016 14:02:00 -0700 Subject: [PATCH] change return name of boundaries to the_geom --- src/pg/sql/44_observatory_geometries.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pg/sql/44_observatory_geometries.sql b/src/pg/sql/44_observatory_geometries.sql index 2bb0c13..5be8cde 100644 --- a/src/pg/sql/44_observatory_geometries.sql +++ b/src/pg/sql/44_observatory_geometries.sql @@ -250,7 +250,7 @@ CREATE OR REPLACE FUNCTION cdb_observatory.OBS_GetBoundariesByBBox( boundary_id text, time_span text DEFAULT NULL, overlap_type text DEFAULT 'intersects') -RETURNS TABLE(boundary geometry, geom_refs text) +RETURNS TABLE(the_geom geometry, geom_refs text) AS $$ DECLARE boundary geometry(Geometry, 4326); @@ -328,7 +328,7 @@ CREATE OR REPLACE FUNCTION cdb_observatory.OBS_GetBoundariesByPointAndRadius( boundary_id text, time_span text DEFAULT NULL, overlap_type text DEFAULT 'intersects') -RETURNS TABLE(boundary geometry, geom_refs text) +RETURNS TABLE(the_geom geometry, geom_refs text) AS $$ DECLARE circle_boundary geometry(Geometry, 4326); @@ -371,7 +371,7 @@ CREATE OR REPLACE FUNCTION cdb_observatory.OBS_GetPointsByBBox( boundary_id text, time_span text DEFAULT NULL, overlap_type text DEFAULT 'intersects') -RETURNS TABLE(boundary geometry, geom_refs text) +RETURNS TABLE(the_geom geometry, geom_refs text) AS $$ DECLARE boundary geometry(Geometry, 4326); @@ -442,7 +442,7 @@ CREATE OR REPLACE FUNCTION cdb_observatory.OBS_GetPointsByPointAndRadius( boundary_id text, time_span text DEFAULT NULL, overlap_type text DEFAULT 'intersects') -RETURNS TABLE(boundary geometry, geom_refs text) +RETURNS TABLE(the_geom geometry, geom_refs text) AS $$ BEGIN