fix bug: runway & taxiway didn't show up bec should be linestring, not polygon

This commit is contained in:
lincomatic 2017-03-09 20:03:37 -08:00
parent af9a86b525
commit afcdd3587c
2 changed files with 20 additions and 2 deletions

View File

@ -15,6 +15,10 @@ RETURNS TABLE(geometry geometry, class text) AS $$
-- etldoc: osm_aeroway_polygon -> layer_aeroway:z14_
SELECT geometry, aeroway
FROM osm_aeroway_polygon WHERE zoom_level >= 14
UNION ALL
-- etldoc: osm_aeroway_linestring -> layer_aeroway:z11_
SELECT geometry, aeroway
FROM osm_aeroway_linestring WHERE zoom_level >= 11
) AS zoom_levels
WHERE geometry && bbox;
$$ LANGUAGE SQL IMMUTABLE;

View File

@ -28,7 +28,21 @@ tables:
aeroway:
- aerodrome
- heliport
- runway
- helipad
- taxiway
- apron
# etldoc: imposm3 -> osm_aeroway_linestring
aeroway_linestring:
type: linestring
fields:
- name: osm_id
type: id
- name: geometry
type: geometry
- name: aeroway
key: aeroway
type: string
mapping:
aeroway:
- runway
- taxiway