trails/packages
Ullrich Schäfer b4c3f97296
Populate PostGIS geom column from GPX track data
Extract coordinates from parsed GPX tracks and store as PostGIS
LineString geometry via ST_GeomFromGeoJSON. Applied to:
- createRoute / updateRoute (routes.server.ts)
- createActivity / createRouteFromActivity (activities.server.ts)

Adds lineStringFromCoords() helper to the journal schema that
builds the SQL expression from [lon, lat] coordinate pairs.

Unblocks spatial queries (e.g. route discovery via ST_Intersects).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 17:05:02 +01:00
..
db Populate PostGIS geom column from GPX track data 2026-04-02 17:05:02 +01:00
gpx Fix planner production server + use .ts extensions everywhere 2026-03-25 01:41:33 +01:00
i18n Add route error toasts with waypoint rollback 2026-03-29 14:09:20 +02:00
map Fix planner production server + use .ts extensions everywhere 2026-03-25 01:41:33 +01:00
types Fix planner production server + use .ts extensions everywhere 2026-03-25 01:41:33 +01:00
ui Fix planner production server + use .ts extensions everywhere 2026-03-25 01:41:33 +01:00