fix(globe): the floor takes no tile coarser than 1 km

Review of Task 6: from 15 km with cold tiles Navara answers from 3.5-4 km
tiles (13.9 km at AUS), below the 4 km floor limit, 6-16 m off; the mesh
floor samples up to 25 km, so those would latch. MAX_FLOOR_TILE_SIZE_M is
now 1 km: from 800 m the answering tiles are 112-314 m. The 1.8 km tile
that read the Austin ground right under a 600 m camera is now a miss too,
which only leaves the DEM prior in place.

qa-surface-heights runs the 15 km pass first in a fresh page (cold), then
the 800 m pass in another, and keeps every answer the floor rule would
take while the tiles stream. Measured: 800 m 19/20 within 2 m of Cesium;
15 km cold 7/20 (the plan's gate of 15 assumed warm tiles - lod 'finest'
can only use what Navara has loaded, and at 15 km it loads 3.5-14 km
tiles), and the floor rule takes 0/20 of those; while streaming it took
answers more than 2 m off at 3 places: the Empire State spire (39 m, also
the settled answer) and two street points 2.2-2.3 m off.
This commit is contained in:
German Khokhlov committed 2026-10-16 22:19:57 +04:00
1 parent f0ce1b04c7
commit d6fe0f3805
3 files changed
+17 -7

No files matched your search

+6 -1
View File
@@ -154,7 +154,12 @@ test('sampler: a coarse tile answer is a miss; a fine one latches', async () =>
engine.fake.script('sampleHeightDetailed', () => ({ height: 143.2, source: 'tiles', tileSizeM: 27_914 }));
sampleMeshFloorCells(engine, [cell], opts);
assert.equal(cachedMeshFloor(cell.lat, cell.lon), null, 'coarse: no latch');
engine.fake.script('sampleHeightDetailed', () => ({ height: 122.5, source: 'tiles', tileSizeM: 1_797 }));
// A 3.5 km tile from 15 km, cold, read 16 m off: still too coarse.
engine.fake.script('sampleHeightDetailed', () => ({ height: 138.7, source: 'tiles', tileSizeM: 3_456 }));
sampleMeshFloorCells(engine, [cell], opts);
assert.equal(cachedMeshFloor(cell.lat, cell.lon), null, '3.5 km: no latch');
// The tiles answering from 800 m are 112-314 m.
engine.fake.script('sampleHeightDetailed', () => ({ height: 122.5, source: 'tiles', tileSizeM: 241 }));
sampleMeshFloorCells(engine, [cell], opts);
assert.equal(cachedMeshFloor(cell.lat, cell.lon), 122.5);
const terrainOnly = nextSite();