Merge pull request #192 from klokantech/lincomatic-master
Add runways and taxiways as linestrings
This commit is contained in:
commit
c8cdef4bba
@ -7,5 +7,4 @@ Read the layer documentation at **http://openmaptiles.org/schema#aeroway**
|
||||

|
||||
|
||||
### ETL diagram
|
||||

|
||||
|
||||

|
||||
|
||||
BIN
layers/aeroway/etl_diagram.png
Normal file
BIN
layers/aeroway/etl_diagram.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
@ -1,9 +1,16 @@
|
||||
-- etldoc: layer_aeroway[shape=record fillcolor=lightpink, style="rounded,filled",
|
||||
-- etldoc: label="layer_aeroway |<z12> z12|<z13> z13|<z14_> z14+" ];
|
||||
-- etldoc: label="layer_aeroway |<z11> z11|<z12> z12|<z13> z13|<z14_> z14+" ];
|
||||
|
||||
CREATE OR REPLACE FUNCTION layer_aeroway(bbox geometry, zoom_level int)
|
||||
RETURNS TABLE(geometry geometry, class text) AS $$
|
||||
SELECT geometry, aeroway AS class FROM (
|
||||
-- etldoc: osm_aeroway_linestring -> layer_aeroway:z11
|
||||
-- etldoc: osm_aeroway_linestring -> layer_aeroway:z12
|
||||
-- etldoc: osm_aeroway_linestring -> layer_aeroway:z13
|
||||
-- etldoc: osm_aeroway_linestring -> layer_aeroway:z14_
|
||||
SELECT geometry, aeroway
|
||||
FROM osm_aeroway_linestring WHERE zoom_level >= 11
|
||||
UNION ALL
|
||||
-- etldoc: osm_aeroway_polygon_gen2 -> layer_aeroway:z12
|
||||
SELECT geometry, aeroway
|
||||
FROM osm_aeroway_polygon_gen2 WHERE zoom_level = 12
|
||||
|
||||
@ -32,3 +32,19 @@ tables:
|
||||
- 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user