Repository navigation
feat(examples): experimental GeoArrow overlay example - #698
Merged
Merged
Conversation
… punctuation Chakra v3's Link defaults to `display: inline-flex`. When a long link wraps, the link becomes a full-width box, so punctuation right after it (a comma or period in attribution text) starts the next line on its own. ExternalLink has no icon to align, so plain `inline` loses nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Show deck.gl-raster and deck.gl-geoarrow layers working together in one deck.gl instance: 3.4 million Speedtest by Ookla mobile performance points over the EOxCloudless 2024 global imagery COG. - The points come from Ookla's own Parquet file on S3, unmodified. parquet-wasm range-reads only the 3 columns the map needs (28 MB of the 185 MB file), one row group per Arrow record batch and layer. - The `tile_x`/`tile_y` centroid columns become a GeoArrow point column in the separated `struct<x, y>` layout without copying. - A log-scale download speed slider drives a DataFilterExtension, so filtering runs on the GPU. Speeds have a long tail (median ~70 Mbps, top 1% over 850 Mbps), which a linear slider would squeeze into its first tenth. - `?url=` loads a local copy of the same file instead; over a slow link the S3 read takes 25+ s, while a local copy loads in under a second. Also list it with a card on the docs examples page. The docs workflow already builds everything under `examples/experimental/`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s load Ookla's file packs 3.4M rows into 4 row groups of up to 1,048,576 rows, each covering a large part of the world. A row group is the smallest unit parquet-wasm can read, so nothing can be drawn until ~9 MB has downloaded, and a viewer can't fetch only the area in view. Say so in the panel, highlighted while points are loading, with the numbers read from the Parquet footer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR was written by Claude (Claude Code), not by @kylebarron.
Adds an experimental example that draws deck.gl-geoarrow points on top of a deck.gl-raster COG in the same deck.gl instance: 3.4 million Speedtest by Ookla mobile performance tiles (Q2 2026) over the EOxCloudless 2024 global imagery COG.
What it does
COGLayerwith the EOxCloudless COG (EPSG:4326), reprojected to Web Mercator on the GPU and interleaved beneath MapLibre's borders and labels.ParquetFile.fromUrl(...).stream({ columns })fetches only the 3 columns the map needs (28 MB of the 185 MB file), with one range request per row group. Each row group becomes one Arrow record batch and oneGeoArrowScatterplotLayer.tile_x/tile_ycentroid columns become a GeoArrow point column in the separatedstruct<x, y>layout without copying. deck.gl-geoarrow then interleaves it on the CPU before uploading.DataFilterExtension, so filtering runs on the GPU. The scale is logarithmic because speeds have a long tail: the median is ~70 Mbps and the top 1% are over 850 Mbps.?url=loads a local copy of the same file instead. Over a ~1–2 MB/s link the S3 read takes 25–37 s, while a local copy loads in 0.4 s. The README has the steps. The server must support suffix range requests, which parquet-wasm uses for the footer:servedoes andhttp-serverdoesn't.Also:
ExternalLink, shared by all examples, now rendersdisplay: inline. Chakra v3'sLinkdefaults toinline-flex, so a wrapped link pushed the punctuation after it onto its own line.examples/experimental/.No library code changes.
Upstream notes
Found while building this. None of them block the example.
Coord = InterleavedCoord), althoughisPointDataaccepts separated ones at runtime, sogetPositionneeds a cast.assignAccessoronly forwards float columns andFixedSizeList<Uint8>colors as binary attributes, and silently drops integer columns. That's why the filter value is a Float32 column.RuntimeError: unreachable) instead of rejecting when a server answers its footer suffix range with 416.Testing
pnpm typecheck(example and docs),biome check, andpnpm build.Written by Claude on behalf of @kylebarron.
🤖 Written by Claude Code