Use classes from ClearTables and add continents

This commit is contained in:
Lukas Martinelli
2016-11-28 15:42:13 +00:00
parent aed323bb99
commit 2f35ab3ee1
8 changed files with 88 additions and 31 deletions

View File

@@ -18,7 +18,7 @@ WITH important_city_point AS (
ne.nameascii ILIKE osm.name OR
ne.nameascii ILIKE osm.name_en
)
AND (osm.place = 'city'::city_class OR osm.place= 'town'::city_class OR osm.place = 'village'::city_class)
AND osm.place IN ('city', 'town', 'village')
AND ST_DWithin(ne.geom, osm.geometry, 50000)
)
UPDATE osm_city_point AS osm