From 6ee0b99bd45bafbe3978daf9163236374b322239 Mon Sep 17 00:00:00 2001 From: Stuart Lynn Date: Wed, 13 Apr 2016 15:10:14 -0400 Subject: [PATCH] Fixing overlapping point issue --- src/pg/sql/41_observatory_augmentation.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pg/sql/41_observatory_augmentation.sql b/src/pg/sql/41_observatory_augmentation.sql index a848216..7f947c6 100644 --- a/src/pg/sql/41_observatory_augmentation.sql +++ b/src/pg/sql/41_observatory_augmentation.sql @@ -329,7 +329,7 @@ BEGIN EXECUTE format('SELECT geoid FROM observatory.%I - WHERE the_geom && $1', + WHERE ST_WITHIN($1, the_geom)', geom_table_name) USING geom INTO geoid;