Skip to content

Commit

Permalink
Merge pull request #334 from CartoDB/333-shoreline_remove_coastals
Browse files Browse the repository at this point in the history
Filter only polygons after extraction
  • Loading branch information
antoniocarlon committed Oct 2, 2017
2 parents 6203eb2 + e1a2867 commit ff3b8d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tasks/us/census/tiger.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ class ShorelineClip(TableTask):
geography = Parameter()

def version(self):
return 7
return 8

def requires(self):
return {
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit ff3b8d3

Please sign in to comment.