fix bug: runway & taxiway didn't show up bec should be linestring, not polygon
This commit is contained in:
parent
af9a86b525
commit
afcdd3587c
@ -15,6 +15,10 @@ RETURNS TABLE(geometry geometry, class text) AS $$
|
|||||||
-- etldoc: osm_aeroway_polygon -> layer_aeroway:z14_
|
-- etldoc: osm_aeroway_polygon -> layer_aeroway:z14_
|
||||||
SELECT geometry, aeroway
|
SELECT geometry, aeroway
|
||||||
FROM osm_aeroway_polygon WHERE zoom_level >= 14
|
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
|
) AS zoom_levels
|
||||||
WHERE geometry && bbox;
|
WHERE geometry && bbox;
|
||||||
$$ LANGUAGE SQL IMMUTABLE;
|
$$ LANGUAGE SQL IMMUTABLE;
|
||||||
|
|||||||
@ -28,7 +28,21 @@ tables:
|
|||||||
aeroway:
|
aeroway:
|
||||||
- aerodrome
|
- aerodrome
|
||||||
- heliport
|
- heliport
|
||||||
- runway
|
|
||||||
- helipad
|
- helipad
|
||||||
- taxiway
|
|
||||||
- apron
|
- 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user