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. 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: 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, 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