Sameh Khamis
d51ea4007b
Ask for heights through one service per scene
...
About 20 sites called scene.sampleHeight, globe.getHeight,
scene.clampToHeight or the MostDetailed variants directly, each with its own
idea of a miss (undefined, NaN, a throw). They now ask heightsFor(scene) in
src/queries/heights.js:
- now(point, { against, exclude }) answers from what is loaded, or null;
against is 'surface' (what is drawn) or 'terrain' (loaded terrain only).
- clampNow(position) moves a position onto the drawn surface, or null.
- batch() and clampBatch() wait for the most detailed tiles: null per
missed point, a rejection when the whole query fails.
- supported() reports { surface, clamp } without allocating.
Cesium still answers now() synchronously, so nothing changes on screen and
nothing is slower: in the live app 1,000 calls cost the same through the
service as direct (terrain 0.5-0.7 ms, surface 2-6 ms a call, run-to-run
noise larger than the difference). Every site already treated a miss as
"hold the last value or fall back"; a renderer that can only answer from a
cache or asynchronously can now plug in at one place.
- A Bhote Koshi evidence point whose terrain sample misses stays at its
fallback elevation instead of reading the miss as sea level.
- The mesh floor sampler skips a scene without depth-texture support
instead of spending its budget on probes that throw.
- The world annotation probe's trace reads hit/missed.
- A source scan forbids direct height calls outside the service.
The service is exported as ./queries/heights and documented in
docs/APPLICATION.md.
2026-11-04 09:24:30 -08:00
..
2026-11-01 12:22:49 -08:00
2026-11-02 16:43:29 +00:00
2026-10-30 23:56:20 -07:00
2026-11-01 20:15:02 -08:00
2026-11-01 13:06:04 -08:00
2026-11-01 16:47:39 -08:00
2026-11-03 00:26:40 +05:30
2026-11-03 14:33:12 +04:00
2026-10-30 18:48:46 -07:00
2026-11-01 09:56:47 -08:00
2026-11-01 16:47:39 -08:00
2026-10-29 11:20:49 +00:00
2026-10-31 10:48:20 -07:00
2026-11-03 08:09:00 -08:00
2026-11-03 08:09:00 -08:00
2026-09-13 00:38:01 -07:00
2026-10-30 21:54:42 -07:00
2026-10-30 22:05:41 -07:00
2026-11-01 20:15:02 -08:00
2026-11-01 16:47:39 -08:00
2026-11-01 20:53:32 -08:00
2026-10-30 21:54:42 -07:00
2026-11-01 20:53:32 -08:00
2026-10-30 22:05:41 -07:00
2026-11-01 21:41:49 -08:00
2026-09-22 17:45:39 -05:00
2026-09-22 17:45:39 -05:00
2026-11-01 13:23:51 -08:00
2026-09-13 02:33:38 -07:00
2026-11-01 16:47:39 -08:00
2026-11-01 08:07:19 -08:00
2026-10-31 13:56:31 -07:00
2026-09-13 02:37:44 -07:00
2026-10-31 17:44:33 -07:00
2026-11-01 08:07:19 -08:00
2026-10-31 14:08:19 -07:00
2026-11-04 08:48:51 -08:00
2026-11-04 08:48:51 -08:00
2026-11-03 08:09:00 -08:00
2026-11-01 15:01:41 -08:00
2026-11-01 15:01:41 -08:00
2026-10-31 16:53:28 -07:00
2026-11-01 21:41:49 -08:00
2026-11-01 14:36:51 -08:00
2026-10-31 14:36:32 -07:00
2026-11-02 16:43:49 +00:00
2026-10-31 17:44:33 -07:00
2026-11-01 22:40:28 -08:00
2026-11-01 22:40:28 -08:00
2026-10-31 14:36:32 -07:00
2026-10-31 14:36:32 -07:00
2026-11-01 16:47:39 -08:00
2026-11-04 08:48:51 -08:00
2026-11-01 14:36:51 -08:00
2026-11-01 13:53:31 -08:00
2026-10-31 21:52:32 -07:00
2026-09-13 01:40:59 -07:00
2026-10-12 13:48:56 +04:00
2026-10-31 00:51:29 -07:00
2026-10-31 00:51:29 -07:00
2026-10-31 00:51:29 -07:00
2026-10-16 21:00:28 +04:00
2026-10-16 21:00:28 +04:00
2026-11-01 08:33:18 -08:00
2026-10-31 00:51:29 -07:00
2026-10-26 14:07:58 -07:00
2026-10-12 13:48:56 +04:00
2026-09-13 01:41:01 -07:00
2026-10-16 21:00:28 +04:00
2026-10-31 22:18:50 -07:00
2026-10-31 22:18:50 -07:00
2026-11-03 20:55:09 -08:00
2026-11-01 13:53:31 -08:00
2026-11-01 09:56:47 -08:00
2026-11-02 16:43:29 +00:00
2026-11-02 16:43:29 +00:00
2026-09-23 20:31:56 -07:00
2026-09-12 21:55:18 -07:00
2026-10-16 21:00:28 +04:00
2026-11-04 09:24:30 -08:00
2026-10-15 04:10:41 +02:00
2026-10-31 20:28:24 -07:00
2026-10-31 20:28:24 -07:00
2026-10-31 20:28:24 -07:00
2026-11-02 16:43:29 +00:00
2026-11-01 20:15:02 -08:00
2026-11-01 13:43:57 -08:00
2026-11-01 16:47:39 -08:00
2026-11-01 15:25:55 -08:00
2026-11-04 08:48:51 -08:00
2026-11-04 08:48:51 -08:00
2026-11-01 16:47:39 -08:00
2026-10-31 19:35:27 -07:00
2026-10-31 19:35:27 -07:00
2026-10-13 20:34:43 +04:00
2026-10-19 13:51:45 +04:00
2026-10-09 00:05:58 +01:00
2026-11-02 16:20:08 +00:00
2026-10-16 21:00:28 +04:00
2026-11-02 17:48:19 +00:00
2026-11-02 16:43:29 +00:00
2026-10-30 22:23:40 -07:00
2026-09-12 22:36:04 -07:00
2026-10-31 22:42:01 -07:00
2026-11-01 16:58:37 -08:00
2026-10-16 21:00:28 +04:00
2026-11-01 16:47:39 -08:00
2026-11-01 20:15:02 -08:00
2026-10-31 18:03:25 -07:00
2026-11-01 16:47:39 -08:00
2026-10-15 23:49:52 +04:00
2026-11-01 16:47:39 -08:00
2026-11-01 10:52:50 -08:00
2026-10-16 21:00:28 +04:00
2026-10-16 21:00:28 +04:00
2026-10-30 17:23:45 -07:00
2026-10-16 21:00:28 +04:00
2026-10-15 23:49:52 +04:00
2026-10-12 21:18:03 +04:00
2026-09-12 22:56:23 -07:00
2026-11-01 16:47:39 -08:00
2026-11-01 13:53:31 -08:00
2026-11-01 13:53:31 -08:00
2026-11-01 13:53:31 -08:00
2026-09-13 05:43:05 -07:00
2026-11-01 13:53:31 -08:00
2026-10-31 19:28:02 -07:00
2026-11-01 16:47:39 -08:00
2026-10-31 12:11:35 -07:00
2026-11-01 11:27:52 -08:00
2026-11-01 14:48:31 -08:00
2026-11-03 08:09:00 -08:00
2026-11-01 13:53:31 -08:00
2026-10-31 23:51:47 -07:00
2026-11-02 17:01:31 +00:00
2026-11-01 08:33:18 -08:00
2026-10-31 23:30:08 -07:00
2026-11-01 15:01:41 -08:00
2026-09-12 19:55:02 -07:00
2026-10-30 23:56:20 -07:00
2026-10-30 23:56:20 -07:00
2026-11-01 14:48:31 -08:00
2026-10-20 14:02:09 +04:00
2026-11-02 16:43:29 +00:00
2026-10-30 23:56:20 -07:00
2026-10-30 23:56:20 -07:00
2026-11-02 16:43:29 +00:00
2026-11-01 22:40:17 -08:00
2026-10-16 21:00:28 +04:00
2026-11-01 13:53:31 -08:00
2026-10-31 18:22:20 -07:00
2026-09-12 23:25:09 -07:00
2026-11-03 14:33:12 +04:00
2026-11-01 16:47:39 -08:00
2026-11-02 12:36:31 +04:00
2026-11-01 11:59:30 -08:00
2026-11-01 11:27:52 -08:00
2026-10-29 11:28:56 +00:00
2026-10-29 11:28:56 +00:00
2026-11-02 12:36:31 +04:00
2026-10-31 17:15:05 -07:00
2026-10-31 17:15:05 -07:00
2026-10-31 17:15:05 -07:00
2026-09-12 23:25:09 -07:00
2026-10-31 22:42:01 -07:00
2026-10-30 18:36:01 -07:00
2026-11-01 13:06:04 -08:00
2026-11-02 16:43:29 +00:00
2026-10-30 20:57:03 -07:00
2026-10-30 18:36:01 -07:00
2026-10-30 18:41:31 -07:00
2026-11-01 13:06:04 -08:00
2026-11-01 16:47:39 -08:00
2026-10-30 20:38:29 -07:00
2026-10-16 21:00:28 +04:00
2026-11-01 14:15:36 -08:00
2026-11-01 16:58:37 -08:00
2026-11-01 22:40:17 -08:00
2026-11-01 14:15:36 -08:00
2026-11-01 16:47:39 -08:00
2026-10-31 23:04:31 -07:00
2026-10-31 23:04:31 -07:00
2026-09-13 03:29:46 -07:00
2026-10-31 18:37:14 -07:00
2026-10-31 18:37:14 -07:00
2026-11-01 11:27:52 -08:00
2026-11-01 13:43:57 -08:00
2026-11-03 08:09:00 -08:00
2026-11-03 08:09:00 -08:00
2026-11-03 08:09:00 -08:00
2026-10-16 21:00:28 +04:00
2026-11-01 14:28:02 -08:00
2026-11-01 14:28:02 -08:00
2026-11-01 16:47:39 -08:00
2026-10-31 19:51:39 -07:00
2026-11-01 14:48:31 -08:00
2026-10-08 15:22:36 +04:00
2026-10-29 11:28:56 +00:00
2026-11-01 14:48:31 -08:00
2026-11-01 13:53:31 -08:00
2026-10-31 19:51:39 -07:00
2026-10-31 19:51:39 -07:00
2026-10-28 14:13:39 +00:00
2026-10-16 21:00:28 +04:00
2026-11-01 16:47:39 -08:00
2026-10-30 20:43:42 -07:00
2026-10-15 23:49:52 +04:00
2026-11-01 21:41:49 -08:00
2026-10-28 23:27:00 +04:00
2026-11-01 14:28:02 -08:00
2026-11-01 14:28:02 -08:00
2026-09-13 04:26:09 -07:00
2026-10-14 20:15:28 -04:00
2026-10-14 20:15:28 -04:00
2026-09-12 18:45:30 -07:00
2026-10-30 18:36:01 -07:00
2026-10-31 19:58:59 -07:00
2026-10-31 19:58:59 -07:00
2026-11-01 16:47:39 -08:00
2026-11-01 20:15:02 -08:00
2026-10-28 12:59:32 +04:00
2026-10-28 14:13:39 +00:00
2026-10-25 16:51:56 -07:00
2026-10-29 11:20:49 +00:00
2026-09-12 20:38:16 -07:00
2026-10-30 23:23:58 -07:00
2026-10-29 11:34:19 +00:00
2026-11-01 16:47:39 -08:00
2026-11-01 15:25:55 -08:00
2026-11-01 17:37:56 -08:00
2026-11-01 17:37:56 -08:00