obs-portal/tile-generator/layers/obs_roads/obs_roads.yaml

56 lines
1.6 KiB
YAML
Raw Normal View History

layer:
id: "obs_roads"
description: |
Road segment statistics for OBS events
buffer_size: 4
fields:
distance_overtaker_min: |
Overtaker minimum distance in meters.
distance_overtaker_max: |
Overtaker maximum distance in meters.
distance_overtaker_mean: |
Overtaker mean distance in meters.
distance_overtaker_median: |
Overtaker median distance in meters.
distance_overtaker_array: |
All overtaker distance values in meters.
overtaking_event_count: |
Number of overtaking events.
2022-03-16 21:05:58 +00:00
usage_count: |
Number of times the road was traveled on.
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.
zone: |
ural or urban
offset_direction: |
Factor for offset to shift the line to the driving side. One of -1, 0, 1.
defaults:
2023-04-01 14:44:47 +00:00
srs: EPSG:3857
datasource:
srid: 3857
geometry_field: geometry
key_field: way_id
key_field_as_attribute: no
query: |
(
SELECT
way_id,
geometry,
distance_overtaker_mean,
distance_overtaker_min,
distance_overtaker_max,
distance_overtaker_median,
distance_overtaker_array,
overtaking_event_count,
2022-03-16 21:05:58 +00:00
usage_count,
direction,
zone,
offset_direction
FROM layer_obs_roads(!bbox!, z(!scale_denominator!), user_id, min_time, max_time)
) AS t
schema:
- ./layer.sql