2021-10-10 10:32:28 +00:00
|
|
|
layer:
|
|
|
|
id: "obs_roads"
|
|
|
|
description: |
|
|
|
|
Road segment statistics for OBS events
|
|
|
|
buffer_size: 4
|
|
|
|
fields:
|
2021-10-31 19:50:09 +00:00
|
|
|
distance_overtaker_min: |
|
|
|
|
Overtaker minimum distance in meters.
|
|
|
|
distance_overtaker_max: |
|
|
|
|
Overtaker maximum distance in meters.
|
2021-10-10 10:32:28 +00:00
|
|
|
distance_overtaker_mean: |
|
|
|
|
Overtaker mean distance in meters.
|
2021-10-31 19:50:09 +00:00
|
|
|
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.
|
2021-10-10 10:32:28 +00:00
|
|
|
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.
|
2022-05-02 20:00:17 +00:00
|
|
|
zone: |
|
|
|
|
ural or urban
|
2021-10-31 19:50:09 +00:00
|
|
|
offset_direction: |
|
|
|
|
Factor for offset to shift the line to the driving side. One of -1, 0, 1.
|
2021-10-10 10:32:28 +00:00
|
|
|
defaults:
|
|
|
|
srs: EPSG:3785
|
|
|
|
datasource:
|
|
|
|
srid: 3857
|
|
|
|
geometry_field: geometry
|
|
|
|
key_field: way_id
|
|
|
|
key_field_as_attribute: no
|
2021-10-31 19:50:09 +00:00
|
|
|
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,
|
2021-10-31 19:50:09 +00:00
|
|
|
direction,
|
2022-05-02 20:00:17 +00:00
|
|
|
zone,
|
2021-10-31 19:50:09 +00:00
|
|
|
offset_direction
|
|
|
|
FROM layer_obs_roads(!bbox!, z(!scale_denominator!))
|
|
|
|
) AS t
|
2021-10-10 10:32:28 +00:00
|
|
|
|
|
|
|
schema:
|
|
|
|
- ./layer.sql
|