fix(junction): diagnose unsupported entry transitions
This commit is contained in:
1 parent
b1fd54f0f8
commit
6c7d81df35
1 file changed
+18
-1
@@ -79,6 +79,7 @@ function buildComplexJunctionGeometry(model, cluster, helpers) {
|
|||||||
};
|
};
|
||||||
const outerRadius = complexJunctionMetrics(cluster).approachOuterRadius;
|
const outerRadius = complexJunctionMetrics(cluster).approachOuterRadius;
|
||||||
const boundaryParts = [];
|
const boundaryParts = [];
|
||||||
|
const transitionDiagnostics = [];
|
||||||
const crosswalks = [];
|
const crosswalks = [];
|
||||||
const stopLines = [];
|
const stopLines = [];
|
||||||
const islands = [];
|
const islands = [];
|
||||||
@@ -119,7 +120,22 @@ function buildComplexJunctionGeometry(model, cluster, helpers) {
|
|||||||
const item = carriageways.find((candidate) => candidate.key === section.carriagewayKey);
|
const item = carriageways.find((candidate) => candidate.key === section.carriagewayKey);
|
||||||
if (!item) continue;
|
if (!item) continue;
|
||||||
// The approach plan owns the editable handoff distance. It shifts only this
|
// The approach plan owns the editable handoff distance. It shifts only this
|
||||||
// carriageway's outer transition, leaving neighboring arms untouched.
|
// carriageway's outer transition, leaving neighboring arms untouched. A
|
||||||
|
// collapsed handoff is reported and omitted rather than publishing a
|
||||||
|
// zero-area trapezoid that downstream layers could mistake for pavement.
|
||||||
|
if (section.transitionStatus !== 'supported') {
|
||||||
|
transitionDiagnostics.push(
|
||||||
|
helpers.diagnostic(
|
||||||
|
'warning',
|
||||||
|
`carriageway:${item.key}`,
|
||||||
|
item.approach.roadIds.map(String),
|
||||||
|
'complex-junction-entry-transition-unsupported',
|
||||||
|
'该进口在当前来源长度内无法形成外部断面到核心断面的连续过渡,已省略退化进口面。',
|
||||||
|
section.inner.point,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
boundaryParts.push({ item, section });
|
boundaryParts.push({ item, section });
|
||||||
const outerHalf = item.approach.widthMeters / 2;
|
const outerHalf = item.approach.widthMeters / 2;
|
||||||
const incomingRoad = item.approach.roadIds
|
const incomingRoad = item.approach.roadIds
|
||||||
@@ -582,6 +598,7 @@ function buildComplexJunctionGeometry(model, cluster, helpers) {
|
|||||||
shape,
|
shape,
|
||||||
approaches,
|
approaches,
|
||||||
diagnostics: [
|
diagnostics: [
|
||||||
|
...transitionDiagnostics,
|
||||||
...cornerDiagnostics,
|
...cornerDiagnostics,
|
||||||
...configurationDiagnostics,
|
...configurationDiagnostics,
|
||||||
helpers.diagnostic(
|
helpers.diagnostic(
|
||||||
|
|||||||
Reference in new issue
Block a user