fix: require source evidence for complex crosswalks
This commit is contained in:
1 parent
858db529ae
commit
3a8af43140
9 files changed
+320
-53
No files matched your search
@@ -331,9 +331,9 @@ then `structureFromTopology(topology, shape, center, features)`. Projection is
|
||||
`cluster:<id>`. The legacy singular field is null at this unscoped entry point.
|
||||
- `GET /api/edit-state?junction=<node>` preserves the node selection contract;
|
||||
`?cluster=<id>` selects a cluster. Preview uses the equivalent `selection`
|
||||
object. A selected editable cluster publishes its external carriageway and
|
||||
corner handles plus `cluster-crossing-inset` and
|
||||
`cluster-stop-line-offset` for each external arm crossing.
|
||||
object. A selected editable cluster publishes its external carriageway,
|
||||
corner, and stop-line handles. It publishes `cluster-crossing-inset` only for
|
||||
an arm with a matching OSM crossing node.
|
||||
- A cluster carriageway anchor contains `clusterId`, stable
|
||||
`carriagewayKey`, `sourceNodeIds`, and `sourceRoadIds`. Replay matches all
|
||||
source identity; a missing or changed source is stale with `anchor-missing`.
|
||||
@@ -353,6 +353,16 @@ then `structureFromTopology(topology, shape, center, features)`. Projection is
|
||||
generator applies the inset once per stripe group and positions each incoming
|
||||
stop line relative to its matching crossing. Never identify these facilities
|
||||
by `crossing_node_id`, because complex members can share a node.
|
||||
- A road envelope or inferred stop line is not crossing evidence. Without a
|
||||
matching source crossing node, compilation emits no complex crosswalk,
|
||||
publishes no crossing-inset handle, records facility evidence as
|
||||
`unknown-no-crossing-source`, and emits
|
||||
`complex-junction-crossing-source-missing`. A stop line may remain as an
|
||||
independent inferred facility; its position must not consume a nonexistent
|
||||
crossing inset.
|
||||
- Source matching uses the same inferred arm radius in handle publication and
|
||||
constraint solving. A published handle must remain applicable at every
|
||||
advertised value, including `value.max`.
|
||||
- Preview and save both evaluate the same candidate through the resolver and
|
||||
`compileGeometry()`. Save rejects every `severity: error` diagnostic before
|
||||
writing the edit document.
|
||||
|
||||
@@ -41,8 +41,8 @@
|
||||
## 4. 现有设施联动与缺失信息治理
|
||||
|
||||
- [x] 停止按夹角和道路宽度自动伪造角部导流岛与短斑马线;缺少岛体区域或步行连接来源时省略并报告原因。
|
||||
- [ ] 现有过街/停止线依附最终车行道;区分未知、已知存在、不支持。
|
||||
- [ ] 清理没有区域/连接依据的自动角部设施;对旧结果变化提供来源和诊断说明。
|
||||
- [x] 现有过街/停止线依附最终车行道;区分未知、已知存在、不支持。缺少匹配 OSM crossing 节点时不生成复杂斑马线或退让手柄,停止线独立保留并标记 `unknown-no-crossing-source`。
|
||||
- [x] 清理没有区域/连接依据的自动角部设施;对旧结果变化提供来源和诊断说明。
|
||||
- [ ] 验证已知排除区和独立通道未被核心铺装吞并,未知岛体不臆造。
|
||||
- [ ] 出口 A6;导流岛自由编辑与新右转通道创建留后续任务。
|
||||
|
||||
@@ -112,6 +112,8 @@ complex-junction.js / native-road.js:构建与全部消费者;direct-edit-so
|
||||
|
||||
本轮进一步补齐两个遗漏:角部道路补面、人行道转角复用 BoundaryGraph 的区域相交判定,侵入已知排除区域时省略并给出角部对象级诊断;复杂过街仅在所属道路臂全部车行道过渡面有效时发布,避免短道路已经无效却继续输出斑马线。短道路回归现在包含 crosswalks、vehicleStopLines 以及缺接缝诊断的对象和来源 ID。排除区回归覆盖实际生成的道路圆角和人行道转角。
|
||||
|
||||
用户复核指出探出分支不应自动出现斑马线。本轮收紧设施证据:道路包络和推断停止线不再充当过街存在证据;只有与道路和位置匹配的 OSM crossing 节点才生成复杂斑马线并发布 `cluster-crossing-inset`。无来源进口输出 `complex-junction-crossing-source-missing`,停止线保留但不消费不存在的退让值。单元与工作台 API 同时覆盖无来源省略和有来源编辑,且 solver 与 manifest 共用来源搜索半径,保证已发布手柄的最大值可实际应用。当前真实 fixture 的验证指标由 5 个过街手柄降为 0,纯效果图确认探出分支无斑马线。
|
||||
|
||||
此处采用明确省略冲突对象,尚未实现绕排除区域重新求解、孔洞或多区域连通;不能据此关闭 A3/A6。下一步需建立区域级共享边界与连通性验证,再推进剩余接入位姿/左右边界编辑,最后做真实数据视觉验收。
|
||||
|
||||
本轮验证:npm test、客户端类型检查、188 项客户端单元测试、11 项 E2E(含生产构建)、format:check 与 git diff --check 全部通过。构建保留既有 bundle 大小提示。
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 397 KiB |
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"clusterId": "cluster-8005332807",
|
||||
"topologyFingerprint": "1a99b5f202d59b65aab955a1c9d9de80e19e18b00c91bcc7e5bc8517678d7632",
|
||||
"armCount": 5,
|
||||
"carriagewayCount": 9,
|
||||
"handleCounts": {
|
||||
"cluster-carriageway-width": 9,
|
||||
"cluster-carriageway-transition-length": 9,
|
||||
"cluster-carriageway-cutback": 9,
|
||||
"cluster-carriageway-position": 9,
|
||||
"cluster-carriageway-direction": 9,
|
||||
"cluster-carriageway-edge-offset": 18,
|
||||
"cluster-corner-radius": 5,
|
||||
"cluster-stop-line-offset": 5
|
||||
},
|
||||
"diagnostics": [
|
||||
{
|
||||
"severity": "warning",
|
||||
"rule": "unconnected-interior-road-end",
|
||||
"subjectId": "road:way/99505317:forward",
|
||||
"message": "道路在区域内部结束,未连接到其他机动车道路。请确认这是实际断头,还是 OSM 节点尚未连接。"
|
||||
},
|
||||
{
|
||||
"severity": "warning",
|
||||
"rule": "unconnected-interior-road-end",
|
||||
"subjectId": "road:way/858770821:segment/2:forward",
|
||||
"message": "道路在区域内部结束,未连接到其他机动车道路。请确认这是实际断头,还是 OSM 节点尚未连接。"
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"rule": "complex-junction-candidate",
|
||||
"subjectId": "junction-cluster-candidate:1590698049+8042920686",
|
||||
"message": "检测到 2 个路口节点由 1 条短路段(最长 19.6 米)相连,可能是同一个物理路口。当前按独立路口编译;如需合并请在 nativeRoad.junctionTemplates.clusters 中配置。"
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"rule": "complex-junction-crossing-source-missing",
|
||||
"subjectId": "crossing:cluster:cluster-8005332807:arm:8005332807/segment%3Away%2F859509947%2F2/road%3Away%2F859509947%3Asegment%2F2%3Aforward|8613058676/segment%3Away%2F858770823%2F3/road%3Away%2F858770823%3Asegment%2F3%3Aforward",
|
||||
"message": "该进口未找到匹配的 OSM 过街节点,过街状态未知,未生成斑马线。"
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"rule": "complex-junction-crossing-source-missing",
|
||||
"subjectId": "crossing:cluster:cluster-8005332807:arm:8613058676/segment%3Away%2F928582773%2F0/road%3Away%2F928582773%3Abackward/road%3Away%2F928582773%3Aforward",
|
||||
"message": "该进口未找到匹配的 OSM 过街节点,过街状态未知,未生成斑马线。"
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"rule": "complex-junction-crossing-source-missing",
|
||||
"subjectId": "crossing:cluster:cluster-8005332807:arm:8024512135/segment%3Away%2F851989492%2F1/road%3Away%2F851989492%3Asegment%2F1%3Aforward|8024512147/segment%3Away%2F858770822%2F2/road%3Away%2F858770822%3Asegment%2F2%3Aforward",
|
||||
"message": "该进口未找到匹配的 OSM 过街节点,过街状态未知,未生成斑马线。"
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"rule": "complex-junction-crossing-source-missing",
|
||||
"subjectId": "crossing:cluster:cluster-8005332807:arm:8024512145/segment%3Away%2F858770821%2F2/road%3Away%2F858770821%3Asegment%2F2%3Aforward|8024512147/segment%3Away%2F99505317%2F0/road%3Away%2F99505317%3Aforward",
|
||||
"message": "该进口未找到匹配的 OSM 过街节点,过街状态未知,未生成斑马线。"
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"rule": "complex-junction-crossing-source-missing",
|
||||
"subjectId": "crossing:cluster:cluster-8005332807:arm:8005332807/segment%3Away%2F253970456%2F0/road%3Away%2F253970456%3Aforward|8024512145/segment%3Away%2F851986783%2F0/road%3Away%2F851986783%3Aforward",
|
||||
"message": "该进口未找到匹配的 OSM 过街节点,过街状态未知,未生成斑马线。"
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"rule": "complex-junction-corner-facilities-omitted",
|
||||
"subjectId": "junction-cluster:cluster-8005332807",
|
||||
"message": "已省略 4 组缺少岛体或步行连接来源的角部导流岛和斑马线。"
|
||||
},
|
||||
{
|
||||
"severity": "warning",
|
||||
"rule": "complex-junction-core-closure-unsupported",
|
||||
"subjectId": "junction-cluster:cluster-8005332807",
|
||||
"message": "路口中心区域缺少可验证的闭合边(parallel-carriageway-closure-unresolved),已保留各进口道路面。"
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"rule": "complex-junction-generated",
|
||||
"subjectId": "junction-cluster:cluster-8005332807",
|
||||
"message": "已识别为5 臂非规则路口,独立生成 5 个进口、道路面、斑马线和停止线。"
|
||||
},
|
||||
{
|
||||
"severity": "warning",
|
||||
"rule": "junction-connector-envelope-fallback",
|
||||
"subjectId": "junction:node/1218843451",
|
||||
"message": "路口面需要按转向路径的凸包兜底生成;请检查外缘和路缘与步行带是否符合实际。"
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"rule": "ordinary-junction-surface",
|
||||
"subjectId": "junction:node/1218843451",
|
||||
"message": "已按道路截面与转向路径生成普通路口面。"
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"rule": "ordinary-junction-surface",
|
||||
"subjectId": "junction:node/1590698049",
|
||||
"message": "已按道路截面与转向路径生成普通路口面。"
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"rule": "ordinary-junction-surface",
|
||||
"subjectId": "junction:node/8042920686",
|
||||
"message": "已按道路截面与转向路径生成普通路口面。"
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"rule": "ordinary-junction-surface",
|
||||
"subjectId": "junction:node/8613058679",
|
||||
"message": "已按道路截面与转向路径生成普通路口面。"
|
||||
},
|
||||
{
|
||||
"severity": "pass",
|
||||
"rule": "effective-carriageway-width",
|
||||
"message": "车行道有效宽度符合标准范围。"
|
||||
},
|
||||
{
|
||||
"severity": "pass",
|
||||
"rule": "effective-carriageway-width",
|
||||
"message": "车行道有效宽度符合标准范围。"
|
||||
},
|
||||
{
|
||||
"severity": "pass",
|
||||
"rule": "effective-carriageway-width",
|
||||
"message": "车行道有效宽度符合标准范围。"
|
||||
},
|
||||
{
|
||||
"severity": "pass",
|
||||
"rule": "effective-carriageway-width",
|
||||
"message": "车行道有效宽度符合标准范围。"
|
||||
},
|
||||
{
|
||||
"severity": "pass",
|
||||
"rule": "effective-carriageway-width",
|
||||
"message": "车行道有效宽度符合标准范围。"
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 359 KiB |
Reference in new issue
Block a user