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,
|
||||
nativePublishedMovementCount: compiled.movements.filter((movement) => movement.geometryPublished).length,
|
||||
nativeConnectionCount: model.connections.length,
|
||||
junctionQuality: compiled.junctionQuality || [],
|
||||
unconnectedInteriorRoadEnds: dangling.length,
|
||||
unconnectedEndsWithManualCandidates: dangling.filter((item) => item.manualCandidates?.length).length,
|
||||
diagnosticsBySeverity,
|
||||
|
||||
@@ -871,6 +871,15 @@ function compileGeometry(model, overrides = { overrides: [] }, options = {}) {
|
||||
);
|
||||
junctionFeatures.push(...compileKnownIslandFeatures(model));
|
||||
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 {
|
||||
roadSurface: { type: 'FeatureCollection', features },
|
||||
edgeLines: { type: 'FeatureCollection', features: edgeLines },
|
||||
@@ -885,6 +894,7 @@ function compileGeometry(model, overrides = { overrides: [] }, options = {}) {
|
||||
vehicleStopLines: { type: 'FeatureCollection', features: [...controls.stopLines, ...generatedComplexStopLines] },
|
||||
connectors: { type: 'FeatureCollection', features: connectorResult.features },
|
||||
movements: connectorResult.movements,
|
||||
junctionQuality,
|
||||
diagnostics,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user