feat: report complex junction layer coverage
This commit is contained in:
1 parent
5ec46c3b3e
commit
92894c7e4f
1 file changed
+17
@@ -879,6 +879,23 @@ function compileGeometry(model, overrides = { overrides: [] }, options = {}) {
|
||||
sharedSeamErrorMeters: feature.properties.shared_seam_error_m,
|
||||
sharedSeamErrors: feature.properties.shared_seam_errors,
|
||||
exclusionHoleCount: feature.properties.exclusion_hole_count || 0,
|
||||
layerFeatureCounts: Object.fromEntries(
|
||||
[
|
||||
['roadSurface', features],
|
||||
['edgeLines', edgeLines],
|
||||
['sidewalkSurface', sidewalks],
|
||||
['laneCenterlines', lanes.features],
|
||||
['laneSeparators', markings.separators],
|
||||
['centerLines', centerLines],
|
||||
['crosswalks', [...controls.crosswalks, ...generatedComplexCrosswalks]],
|
||||
['vehicleStopLines', [...controls.stopLines, ...generatedComplexStopLines]],
|
||||
].map(([layer, layerFeatures]) => [
|
||||
layer,
|
||||
layerFeatures.filter(
|
||||
(item) => String(item.properties?.cluster_id || '') === String(feature.properties.cluster_id),
|
||||
).length,
|
||||
]),
|
||||
),
|
||||
}));
|
||||
return {
|
||||
roadSurface: { type: 'FeatureCollection', features },
|
||||
|
||||
Reference in new issue
Block a user