Add requires to 2 layer definitions (#797)

Mark waterway and transoprtation_name as having a dependency on another layer.
This is currently an unused parameter, but tools will use it later for faster
sql code generation.

Closes #796
This commit is contained in:
Yuri Astrakhan 2020-04-21 12:36:44 -04:00 committed by GitHub
parent b850819218
commit 0683185717
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
layer: layer:
id: "transportation_name" id: "transportation_name"
# transportation_name relies on the function highway_class() defined in transportation layer
requires: "transportation"
description: | description: |
This is the layer for labelling the highways. Only highways that are named `name=*` and are long enough This is the layer for labelling the highways. Only highways that are named `name=*` and are long enough
to place text upon appear. The OSM roads are stitched together if they contain the same name to place text upon appear. The OSM roads are stitched together if they contain the same name

View File

@ -1,5 +1,7 @@
layer: layer:
id: "waterway" id: "waterway"
# waterway relies on the function waterway_brunnel() defined in water layer
requires: "water"
description: | description: |
OpenStreetMap [waterways](https://wiki.openstreetmap.org/wiki/Waterways) for higher zoom levels (z9 and more) OpenStreetMap [waterways](https://wiki.openstreetmap.org/wiki/Waterways) for higher zoom levels (z9 and more)
and Natural Earth rivers and lake centerlines for low zoom levels (z3 - z8). and Natural Earth rivers and lake centerlines for low zoom levels (z3 - z8).