feat(vtk): parseInversionGrid 解析 lat/lon,弯曲测线渲染为曲面帘面

之前丢弃经纬度→所有剖面退化成 y=0 平面。解析后 CurtainActor 经 GeoLocalFrame 按真实测线摆位:
37/136 弯曲测线→曲面帘面,直线/无geo→平面(正确)。
This commit is contained in:
gaozheng 2026-06-16 20:41:14 +08:00
parent 37b433208e
commit b2740898f6
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ Grid parseInversionGrid(const QJsonObject& data) {
Grid g(nx < 1 ? 1 : nx, ny < 1 ? 1 : ny);
g.x.clear(); for (auto e : x) g.x.push_back(num(e));
g.y.clear(); for (auto e : y) g.y.push_back(num(e));
// 经纬度(每列 [nx]):供 CurtainActor 经 GeoLocalFrame 把每列摆到真实测线位置——
// 弯曲测线 → 曲面帘面(不解析则 lat/lon 空、退化成 y=0 平面。API 字段 lat/lon。
g.lat.clear(); for (auto e : data.value("lat").toArray()) g.lat.push_back(num(e));
g.lon.clear(); for (auto e : data.value("lon").toArray()) g.lon.push_back(num(e));
if (v.size() != ny) // 服务端 v 行数与 y 不符:下方越界处填 NaN记录便于排查非静默
qWarning("parseInversionGrid: v rows=%d != ny=%d (缺失行将填 NaN)", v.size(), ny);
for (int j = 0; j < ny; ++j) {