Skip to content

feat(examples): load full flight data in v10 examples - #11211

Open
ibgreen wants to merge 2 commits into
masterfrom
codex/v10-example-loading
Open

ibgreen wants to merge 2 commits into
masterfrom
codex/v10-example-loading

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Follow up of #11192

Change List

  • Load the full Line flight dataset into Arrow
  • Support Scenegraph transform columns and offline flight replay
  • Handle fractional React canvas sizes
  • Preserve example tests and documentation

Verified lint and Node tests, including the Scenegraph transform suite.


Note

Low Risk
Non-breaking additions to layer accessor types and example loaders with low risk of regression.

Overview
Adds Apache Arrow column and SQL expression support to ScenegraphLayer instance transform accessors (getOrientation, getScale, getTranslation, and getTransformMatrix), including validation and fallback handling for null rows or components.

Updates the Line and Scenegraph v10 website examples to use Arrow data pipelines. The Line example introduces FlightPathArrowLoader and PolylineArrowLoader to parse Google encoded polyline flight streams directly into Arrow tables for SQL accessors. The Scenegraph example converts OpenSky flight states to Arrow tables with SQL-evaluated orientation and scale, while adding an offline simulated replay loop when live API polling fails.

Additionally fixes canvas container size matching in @deck.gl/react by rounding fractional pixel dimensions reported by ResizeObserver, and strips fixed depthFormat parameters on glTF models under WebGPU.

Reviewed by Cursor Bugbot for commit 97e275a. Bugbot is set up for automated code reviews on this repo. Configure here.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T21:27:29.083410Z f890a99 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The follow-up changes appear safe to merge; both previous findings are addressed.

Summary

The PR expands Arrow support for flight examples and Scenegraph transforms, and fixes React canvas sizing for fractional dimensions.

  • ScenegraphLayer reads Arrow columns for each model's transform.
  • The LineLayer example draws the full flight dataset from Arrow data.
  • The aircraft map keeps moving with live data or fallback replay.
  • WebGPU Scenegraph models no longer pin a depth format.
  • DeckGL matches fractional canvas sizes to rounded container sizes.

Both previous findings are addressed. No new actionable issues were found in the follow-up changes.

Reviews (2) · Last reviewed commit: "Address v10 flight loading review" · Reviewed by Greptile

Comment thread test/modules/react/deckgl.spec.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f890a99c18

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@coveralls

coveralls commented Nov 18, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.512% (-0.009%) from 82.521% — codex/v10-example-loading into master

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 97e275a; recommend approval.

No P1s.

Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.


Generated by Claude Code

"react-dom": "^18.0.0",
"react-map-gl": "^8.0.0"
"react-map-gl": "^8.0.0",
"@math.gl/sql": "5.0.0-beta.12",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: A standalone copy of this example fails: it uses SQL accessors, pins deck.gl ^9.0.0, and no published deck.gl has SQL accessors. The scenegraph and line READMEs still say to copy the folder and run npm start.

Could both READMEs use the arc README's checkout note (yarn start-local) for now, with a TODO pointing to #11268?


Generated by Claude Code

if (controller.signal.aborted) return;
startReplay();
}
pollTimer = setTimeout(poll, 60000);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: On deck.gl every poll fails CORS, so the page always shows the simulated replay and logs a failed request every 60 s. The old code made one request.

  • A request with Origin: https://deck.gl gets Access-Control-Allow-Origin: https://opensky-network.org.

Could we stop polling after a network or CORS failure, and keep the 60 s poll once a request succeeds?


Generated by Claude Code

Comment on lines +322 to +323
Transform vectors must match the data length. Null rows or components use the
accessor default. `getTransformMatrix` continues to override both accessors.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: These lines render as part of getScale, but they apply to every transform accessor. The new bullets also skip this page's Arrow format: getPosition and getColor put arrow.Vector in the heading and link Using with Arrow in one line.

Could the transform entries use that format, with the length and null rules stated once?

Details
  • The getOrientation SQL example says pitch, heading, roll; the prop text says [pitch, yaw, roll].
  • "continues to override" describes a change; the reference can say "overrides".

Generated by Claude Code


### Arrow loading

The example loads the full `website/flight-path-data.txt` dataset directly into an

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The Data format section above still links the examples/line folder and its Heathrow JSON. The app now loads website/flight-path-data.txt for the flights. Could we update that link?


Generated by Claude Code

}

/** Internal example loader for a single Google/Mapbox encoded polyline. */
export const PolylineArrowLoader = {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: The app uses only decodePolyline and positionVector from this file. PolylineArrowLoader is used only by its test and the README paragraph. Could we drop it?


Generated by Claude Code

@athomct athomct left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Master now has Arrow and SQL support for the ScenegraphLayer transform accessors from #11219. That PR sets arrow: 'row' on getOrientation, getScale, getTranslation and getTransformMatrix. create-props.ts then changes a vector or SQL input into a row callback. test/modules/layers/tabular-inputs.spec.ts covers ScenegraphLayer with SQL getScale and getTransformMatrix.

This PR uses arrow: true and adds a second vector path in mesh-columns.ts. After the rebase, please keep one of the two methods. If you keep 'row', the isArrowVector branches in updateColumns and prepareMeshColumnTransforms never run. Then the null rules in scenegraph-layer.md must match what the row adapter does. If you keep arrow: true, please tell us why the typed path is necessary, and remove the row adapter for these props.

I also agree with chrisgervang's open points on the scenegraph package.json, the CORS polling, and the line README. The scenegraph package.json also pins @math.gl/sql and @math.gl/geospatial to 5.0.0-beta.12, but master uses ^5.0.0.

getOrientation: {type: 'accessor', value: [0, 0, 0]},
getScale: {type: 'accessor', value: [1, 1, 1]},
getTranslation: {type: 'accessor', value: [0, 0, 0]},
getOrientation: {type: 'accessor', arrow: true, value: [0, 0, 0]},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Master sets arrow: 'row' on these four props (#11219). Please keep one method after the rebase. With 'row', the vector branches in mesh-columns.ts do not run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants