2016-10-10 18:17:05 +00:00
|
|
|
layer:
|
2016-11-26 20:19:43 +00:00
|
|
|
id: "transportation"
|
2016-10-10 18:17:05 +00:00
|
|
|
description: |
|
2016-12-02 12:36:10 +00:00
|
|
|
**transportation** contains roads and railways.
|
|
|
|
This layer is directly derived from the OSM road hierarchy.
|
2017-01-05 15:40:37 +00:00
|
|
|
At lower zoom levels major highways from Natural Earth are used.
|
2016-12-02 12:36:10 +00:00
|
|
|
It contains all roads from motorways to primary, secondary and
|
|
|
|
tertiary roads to residential roads and
|
|
|
|
foot paths. Styling the roads is the most essential part of the map.
|
2017-01-05 15:40:37 +00:00
|
|
|
The `transportation` layer also contains polygons for features like plazas.
|
2016-10-10 18:17:05 +00:00
|
|
|
buffer_size: 4
|
|
|
|
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-11-30 12:57:25 +00:00
|
|
|
class:
|
|
|
|
description: |
|
2016-12-02 12:36:10 +00:00
|
|
|
Distinguish between more and less important roads or railways.
|
|
|
|
Class is derived from the value of the
|
2016-11-30 12:57:25 +00:00
|
|
|
[`highway`](http://wiki.openstreetmap.org/wiki/Key:highway) or
|
|
|
|
[`railway`](http://wiki.openstreetmap.org/wiki/Key:railway) tag.
|
|
|
|
values:
|
|
|
|
- motorway
|
|
|
|
- trunk
|
|
|
|
- primary
|
|
|
|
- secondary
|
|
|
|
- tertiary
|
2016-12-02 12:36:10 +00:00
|
|
|
- minor
|
2016-11-30 12:57:25 +00:00
|
|
|
- service
|
2016-12-02 12:36:10 +00:00
|
|
|
- track
|
2016-11-30 12:57:25 +00:00
|
|
|
- path
|
2016-12-02 12:36:10 +00:00
|
|
|
- raceway
|
2016-11-30 12:57:25 +00:00
|
|
|
- rail
|
2016-12-02 12:36:10 +00:00
|
|
|
- transit
|
2016-11-30 12:57:25 +00:00
|
|
|
brunnel:
|
|
|
|
description: |
|
|
|
|
Mark whether way is a tunnel or bridge.
|
|
|
|
values:
|
|
|
|
- bridge
|
|
|
|
- tunnel
|
|
|
|
- ford
|
|
|
|
oneway:
|
|
|
|
description: |
|
|
|
|
Mark with `1` whether way is a oneway (in the direction of the way)
|
|
|
|
or not with `0`.
|
|
|
|
values: [0, 1]
|
|
|
|
ramp:
|
|
|
|
description: |
|
|
|
|
Mark with `1` whether way is a ramp (link or steps)
|
|
|
|
or not with `0`.
|
|
|
|
values: [0, 1]
|
|
|
|
service:
|
|
|
|
description: |
|
|
|
|
Original value of the [`service`](http://wiki.openstreetmap.org/wiki/Key:service) tag.
|
|
|
|
values:
|
|
|
|
- spur
|
|
|
|
- yard
|
|
|
|
- siding
|
|
|
|
- crossover
|
|
|
|
- driveway
|
|
|
|
- alley
|
|
|
|
- parking_aisle
|
2016-10-10 18:17:05 +00:00
|
|
|
datasource:
|
2016-10-24 13:14:43 +00:00
|
|
|
geometry_field: geometry
|
2016-10-10 18:17:05 +00:00
|
|
|
srid: 900913
|
2016-12-02 12:36:10 +00:00
|
|
|
query: (SELECT geometry, class, oneway, ramp, brunnel, service FROM layer_transportation(!bbox!, z(!scale_denominator!))) AS t
|
2016-10-10 18:17:05 +00:00
|
|
|
schema:
|
2016-11-28 10:29:00 +00:00
|
|
|
- ./class.sql
|
2017-03-27 20:14:38 +00:00
|
|
|
- ./merge_highways.sql
|
2016-11-26 20:47:42 +00:00
|
|
|
- ./layer.sql
|
2016-10-10 18:17:05 +00:00
|
|
|
datasources:
|
|
|
|
- type: imposm3
|
|
|
|
mapping_file: ./mapping.yaml
|