From 4d51ecc12e44df76cda6e51bc12a519868dc337d Mon Sep 17 00:00:00 2001 From: John Krauss Date: Mon, 11 Jul 2016 11:46:04 -0400 Subject: [PATCH] comment out notices --- src/pg/sql/41_observatory_augmentation.sql | 18 +++++++++--------- src/pg/sql/44_observatory_geometries.sql | 20 ++++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/pg/sql/41_observatory_augmentation.sql b/src/pg/sql/41_observatory_augmentation.sql index 08a6208..b6fd2b9 100644 --- a/src/pg/sql/41_observatory_augmentation.sql +++ b/src/pg/sql/41_observatory_augmentation.sql @@ -169,19 +169,19 @@ BEGIN IF geom_table_name IS NULL THEN - RAISE NOTICE 'Point % is outside of the data region', ST_AsText(geom); + --raise notice 'Point % is outside of the data region', ST_AsText(geom); -- TODO this should return JSON RETURN QUERY SELECT '{}'::json; RETURN; END IF; IF data_table_info IS NULL THEN - RAISE NOTICE 'Cannot find data table for boundary ID %, column_ids %, and time_span %', geometry_level, column_ids, time_span; + --raise notice 'Cannot find data table for boundary ID %, column_ids %, and time_span %', geometry_level, column_ids, time_span; END IF; IF ST_GeometryType(geom) = 'ST_Point' THEN - RAISE NOTICE 'geom_table_name %, data_table_info %', geom_table_name, data_table_info::json[]; + --raise notice 'geom_table_name %, data_table_info %', geom_table_name, data_table_info::json[]; results := cdb_observatory._OBS_GetPoints(geom, geom_table_name, data_table_info); @@ -260,7 +260,7 @@ BEGIN USING geom INTO geoid; - RAISE NOTICE 'geoid is %, geometry table is % ', geoid, geom_table_name; + --raise notice 'geoid is %, geometry table is % ', geoid, geom_table_name; EXECUTE format('SELECT ST_Area(the_geom::geography) / (1000 * 1000) @@ -273,7 +273,7 @@ BEGIN IF area IS NULL THEN - RAISE NOTICE 'No geometry at %', ST_AsText(geom); + --raise notice 'No geometry at %', ST_AsText(geom); END IF; query := 'SELECT Array['; @@ -411,7 +411,7 @@ BEGIN , target_table) INTO data_geoid_colname; - RAISE DEBUG 'target_table %, colname %', target_table, colname; + --RAISE DEBUG 'target_table %, colname %', target_table, colname; EXECUTE format( 'SELECT %I @@ -796,7 +796,7 @@ BEGIN IF geom_table_name IS NULL THEN - RAISE NOTICE 'Point % is outside of the data region', ST_AsText(geom); + --raise notice 'Point % is outside of the data region', ST_AsText(geom); RETURN QUERY SELECT '{}'::text[], '{}'::text[]; RETURN; END IF; @@ -810,7 +810,7 @@ BEGIN IF data_table_info IS NULL THEN - RAISE NOTICE 'No data table found for this location'; + --raise notice 'No data table found for this location'; RETURN QUERY SELECT NULL::json; RETURN; END IF; @@ -825,7 +825,7 @@ BEGIN IF geoid IS NULL THEN - RAISE NOTICE 'No geometry id for this location'; + --raise notice 'No geometry id for this location'; RETURN QUERY SELECT NULL::json; RETURN; END IF; diff --git a/src/pg/sql/44_observatory_geometries.sql b/src/pg/sql/44_observatory_geometries.sql index 40b1765..0ca42d4 100644 --- a/src/pg/sql/44_observatory_geometries.sql +++ b/src/pg/sql/44_observatory_geometries.sql @@ -64,11 +64,11 @@ BEGIN -- if no tables are found, raise notice and return null IF target_table IS NULL THEN - RAISE NOTICE 'No boundaries found for ''%'' in ''%''', ST_AsText(geom), boundary_id; + --RAISE NOTICE 'No boundaries found for ''%'' in ''%''', ST_AsText(geom), boundary_id; RETURN NULL::geometry; END IF; - RAISE NOTICE 'target_table: %', target_table; + --RAISE NOTICE 'target_table: %', target_table; -- return the first boundary in intersections EXECUTE format( @@ -143,7 +143,7 @@ BEGIN -- if no tables are found, raise notice and return null IF target_table IS NULL THEN - RAISE NOTICE 'Warning: No boundaries found for ''%''', boundary_id; + --RAISE NOTICE 'Warning: No boundaries found for ''%''', boundary_id; RETURN NULL::text; END IF; @@ -159,7 +159,7 @@ BEGIN , target_table) INTO geoid_colname; - RAISE NOTICE 'target_table: %, geoid_colname: %', target_table, geoid_colname; + --RAISE NOTICE 'target_table: %, geoid_colname: %', target_table, geoid_colname; -- return geometry id column value EXECUTE format( @@ -212,11 +212,11 @@ BEGIN SELECT * INTO geoid_colname, target_table, geom_colname FROM cdb_observatory._OBS_GetGeometryMetadata(boundary_id); - RAISE NOTICE '%', target_table; + --RAISE NOTICE '%', target_table; IF target_table IS NULL THEN - RAISE NOTICE 'No geometries found'; + --RAISE NOTICE 'No geometries found'; RETURN NULL::geometry; END IF; @@ -272,12 +272,12 @@ BEGIN -- if no tables are found, raise notice and return null IF target_table IS NULL THEN - RAISE NOTICE 'No boundaries found for bounding box ''%'' in ''%''', ST_AsText(geom), boundary_id; + --RAISE NOTICE 'No boundaries found for bounding box ''%'' in ''%''', ST_AsText(geom), boundary_id; RETURN QUERY SELECT NULL::geometry, NULL::text; RETURN; END IF; - RAISE NOTICE 'target_table: %', target_table; + --RAISE NOTICE 'target_table: %', target_table; -- return first boundary in intersections RETURN QUERY @@ -418,12 +418,12 @@ BEGIN -- if no tables are found, raise notice and return null IF target_table IS NULL THEN - RAISE NOTICE 'No boundaries found for bounding box ''%'' in ''%''', ST_AsText(geom), boundary_id; + --RAISE NOTICE 'No boundaries found for bounding box ''%'' in ''%''', ST_AsText(geom), boundary_id; RETURN QUERY SELECT NULL::geometry, NULL::text; RETURN; END IF; - RAISE NOTICE 'target_table: %', target_table; + --RAISE NOTICE 'target_table: %', target_table; -- return first boundary in intersections RETURN QUERY