From a5eacba2adee0b31139b8726f009efbda4cd71f6 Mon Sep 17 00:00:00 2001 From: Javier Torres Date: Fri, 29 Sep 2017 08:31:17 +0200 Subject: [PATCH 1/2] Filter only polygons after extraction --- tasks/us/census/tiger.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/us/census/tiger.py b/tasks/us/census/tiger.py index 9930eb217b..7d2544b93a 100644 --- a/tasks/us/census/tiger.py +++ b/tasks/us/census/tiger.py @@ -569,9 +569,8 @@ def populate(self): geoid, ST_Union(ARRAY( SELECT ST_MakePolygon(ST_ExteriorRing( - (ST_Dump(the_geom)).geom + (ST_Dump(ST_CollectionExtract(the_geom, 3))).geom )) - WHERE GeometryType(the_geom) = 'POLYGON' )), aland FROM {input}'''.format( From e1a28679b6a5ee7e909237a603af1a30126f67e9 Mon Sep 17 00:00:00 2001 From: Javier Torres Date: Fri, 29 Sep 2017 09:23:46 +0200 Subject: [PATCH 2/2] Bump version --- tasks/us/census/tiger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/us/census/tiger.py b/tasks/us/census/tiger.py index 7d2544b93a..e53bffe3b7 100644 --- a/tasks/us/census/tiger.py +++ b/tasks/us/census/tiger.py @@ -540,7 +540,7 @@ class ShorelineClip(TableTask): geography = Parameter() def version(self): - return 7 + return 8 def requires(self): return {