[openstreetmap/openstreetmap-website] Add a gpx_tracks table and convert trace points into linestrings (PR #7348)

Ruben L. Mendoza notifications at github.com
Thu Sep 3 09:57:58 UTC 2026


@Rub21 commented on this pull request.



> @@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+class CreateGpxTracks < ActiveRecord::Migration[8.1]
+  def change
+    create_table :gpx_tracks, :primary_key => [:gpx_id, :trackid, :segment] do |t|
+      t.bigint :gpx_id, :null => false
+      t.integer :trackid, :null => false
+      t.integer :segment, :null => false
+      t.column :geom, "geometry(GeometryZM,4326)", :null => false

Done!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7348#discussion_r3923324077
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/7348/review/5100466788 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260903/99934600/attachment.htm>


More information about the rails-dev mailing list