feat: include junction quality in compile reports
This commit is contained in:
1 parent
3cf6bebb10
commit
5ec46c3b3e
2 files changed
+11
No files matched your search
@@ -160,6 +160,7 @@ function compareOsm2Streets(area, model, compiled) {
|
|||||||
nativeMovementCount: compiled.movements.length,
|
nativeMovementCount: compiled.movements.length,
|
||||||
nativePublishedMovementCount: compiled.movements.filter((movement) => movement.geometryPublished).length,
|
nativePublishedMovementCount: compiled.movements.filter((movement) => movement.geometryPublished).length,
|
||||||
nativeConnectionCount: model.connections.length,
|
nativeConnectionCount: model.connections.length,
|
||||||
|
junctionQuality: compiled.junctionQuality || [],
|
||||||
unconnectedInteriorRoadEnds: dangling.length,
|
unconnectedInteriorRoadEnds: dangling.length,
|
||||||
unconnectedEndsWithManualCandidates: dangling.filter((item) => item.manualCandidates?.length).length,
|
unconnectedEndsWithManualCandidates: dangling.filter((item) => item.manualCandidates?.length).length,
|
||||||
diagnosticsBySeverity,
|
diagnosticsBySeverity,
|
||||||
|
|||||||
@@ -871,6 +871,15 @@ function compileGeometry(model, overrides = { overrides: [] }, options = {}) {
|
|||||||
);
|
);
|
||||||
junctionFeatures.push(...compileKnownIslandFeatures(model));
|
junctionFeatures.push(...compileKnownIslandFeatures(model));
|
||||||
validateConnectorContainment(connectorResult.features, junctionFeatures, diagnostics);
|
validateConnectorContainment(connectorResult.features, junctionFeatures, diagnostics);
|
||||||
|
const junctionQuality = features
|
||||||
|
.filter((feature) => feature.properties?.kind === 'complex-core')
|
||||||
|
.map((feature) => ({
|
||||||
|
clusterId: feature.properties.cluster_id,
|
||||||
|
regionStatus: feature.properties.region_status,
|
||||||
|
sharedSeamErrorMeters: feature.properties.shared_seam_error_m,
|
||||||
|
sharedSeamErrors: feature.properties.shared_seam_errors,
|
||||||
|
exclusionHoleCount: feature.properties.exclusion_hole_count || 0,
|
||||||
|
}));
|
||||||
return {
|
return {
|
||||||
roadSurface: { type: 'FeatureCollection', features },
|
roadSurface: { type: 'FeatureCollection', features },
|
||||||
edgeLines: { type: 'FeatureCollection', features: edgeLines },
|
edgeLines: { type: 'FeatureCollection', features: edgeLines },
|
||||||
@@ -885,6 +894,7 @@ function compileGeometry(model, overrides = { overrides: [] }, options = {}) {
|
|||||||
vehicleStopLines: { type: 'FeatureCollection', features: [...controls.stopLines, ...generatedComplexStopLines] },
|
vehicleStopLines: { type: 'FeatureCollection', features: [...controls.stopLines, ...generatedComplexStopLines] },
|
||||||
connectors: { type: 'FeatureCollection', features: connectorResult.features },
|
connectors: { type: 'FeatureCollection', features: connectorResult.features },
|
||||||
movements: connectorResult.movements,
|
movements: connectorResult.movements,
|
||||||
|
junctionQuality,
|
||||||
diagnostics,
|
diagnostics,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user