feat(junction): validate entry ring geometry
This commit is contained in:
1 parent
a90826efed
commit
a37c707188
3 files changed
+32
-1
No files matched your search
@@ -123,6 +123,19 @@ function buildComplexJunctionGeometry(model, cluster, helpers) {
|
||||
// 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.ringStatus !== 'supported') {
|
||||
transitionDiagnostics.push(
|
||||
helpers.diagnostic(
|
||||
'warning',
|
||||
`carriageway:${item.key}`,
|
||||
item.approach.roadIds.map(String),
|
||||
'complex-junction-entry-ring-invalid',
|
||||
'该进口边界无法形成有效道路面,已省略退化或自交几何。',
|
||||
section.inner.point,
|
||||
),
|
||||
);
|
||||
continue;
|
||||
}
|
||||
if (section.exclusionStatus !== 'clear') {
|
||||
transitionDiagnostics.push(
|
||||
helpers.diagnostic(
|
||||
|
||||
Reference in new issue
Block a user