Skip to content

fix: create trip layer from duckdb table - #3344

Merged
lixun910 merged 5 commits into
masterfrom
xli-fix-trip-from-duckdb
Feb 26, 2026
Merged

fix: create trip layer from duckdb table#3344
lixun910 merged 5 commits into
masterfrom
xli-fix-trip-from-duckdb

Conversation

@lixun910

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings February 24, 2026 20:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request enables the creation of trip layers from DuckDB tables by adding support for XYZM (4D) coordinate handling and table column mode detection. The changes address the issue where trip data with timestamps embedded in GeoJSON coordinates was not being properly imported and used to create trip layers.

Changes:

  • Added detection and custom parsing for GeoJSON with XYZM (4D) coordinates to preserve timestamp data
  • Extended trip layer detection to support geoarrow field types and table column mode
  • Modified ID field detection to be more flexible and ensured consistent ID handling via string conversion

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

File Description
src/layers/src/trip-layer/trip-layer.ts Added support for geoarrow field types and table column mode detection for trip layers
src/layers/src/geojson-layer/geojson-utils.ts Modified ID field detection regex and converted IDs to strings for consistent grouping behavior
src/duckdb/src/table/duckdb-table.ts Implemented XYZM coordinate detection and custom import path to preserve 4D coordinates including timestamps

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/layers/src/geojson-layer/geojson-utils.ts Outdated
Comment thread src/duckdb/src/table/duckdb-table.ts Outdated
Comment thread src/duckdb/src/table/duckdb-table.ts Outdated
Comment thread src/duckdb/src/table/duckdb-table.ts Outdated
Comment thread src/duckdb/src/table/duckdb-table.ts
Comment thread src/layers/src/geojson-layer/geojson-utils.ts Outdated
Comment thread src/layers/src/trip-layer/trip-layer.ts Outdated
@lixun910
lixun910 merged commit ca30df0 into master Feb 26, 2026
6 of 7 checks passed
@lixun910
lixun910 deleted the xli-fix-trip-from-duckdb branch February 26, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants