openmaptiles/layers/transportation_name/transportation_name.yaml

56 wiersze
2.2 KiB
YAML
Czysty Zwykły widok Historia

2016-10-25 12:54:34 +00:00
layer:
id: "transportation_name"
2016-10-25 12:54:34 +00:00
description: |
2016-10-29 08:38:08 +00:00
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 have better label placement than having many small linestrings.
For motorways you should use the `ref` field to label them while for other roads you should use `name`.
2016-10-25 12:54:34 +00:00
buffer_size: 8
srs: +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over
fields:
2016-10-29 08:38:08 +00:00
name: The OSM [`name`](http://wiki.openstreetmap.org/wiki/Highways#Names_and_references) value of the highway.
2017-01-18 15:13:37 +00:00
name_en: The english `name:en` value if available.
ref: The OSM [`ref`](http://wiki.openstreetmap.org/wiki/Key:ref) tag of the motorway or its network.
2016-10-29 08:38:08 +00:00
ref_length: Length of the `ref` field. Useful for having a shield icon as background for labeling motorways.
network:
description: |
The network type derived mainly from [`network`](http://wiki.openstreetmap.org/wiki/Key:network) tag of the road.
See more info about [`us-*`](http://wiki.openstreetmap.org/wiki/Road_signs_in_the_United_States),
[`ca-transcanada`](https://en.wikipedia.org/wiki/Trans-Canada_Highway),
or [`gb-*`](http://wiki.openstreetmap.org/wiki/United_Kingdom_Tagging_Guidelines#UK_roads).
values:
- us-interstate
- us-highway
- us-state
- ca-transcanada
- gb-motorway
- gb-trunk
- road (default)
2016-11-30 12:57:25 +00:00
class:
description: |
Distinguish between more and less important roads.
values:
- motorway
- trunk
- primary
- secondary
- tertiary
- minor
- service
- track
- path
- raceway
2016-11-30 12:57:25 +00:00
- rail
- transit
2016-10-25 12:54:34 +00:00
datasource:
geometry_field: geometry
srid: 900913
query: (SELECT geometry, name, name_en, name_de, ref, ref_length, network::text, class::text FROM layer_transportation_name(!bbox!, z(!scale_denominator!))) AS t
2016-10-25 12:54:34 +00:00
schema:
2017-03-01 09:50:07 +00:00
- ./network_type.sql
2016-10-25 12:54:34 +00:00
- ./merge_highways.sql
- ./layer.sql
datasources:
- type: imposm3
mapping_file: ../transportation/mapping.yaml