obs-portal/tile-generator/layers/obs_roads/obs_roads.yaml
2021-11-22 09:50:33 +01:00

24 lines
681 B
YAML

layer:
id: "obs_roads"
description: |
Road segment statistics for OBS events
buffer_size: 4
fields:
distance_overtaker_mean: |
Overtaker mean distance in meters.
direction: |
Contains -1 for events while going along the way backwards, 1 for
forwards. Each road is emitted twice, if it has data for both directions,
even if it is oneway.
defaults:
srs: EPSG:3785
datasource:
srid: 3857
geometry_field: geometry
key_field: way_id
key_field_as_attribute: no
query: (SELECT way_id, geometry, distance_overtaker_mean, direction FROM layer_obs_roads(!bbox!, z(!scale_denominator!))) AS t
schema:
- ./layer.sql