Welcome guest, is this your first visit? Click the "Create Account" button now to join.
Results 1 to 10 of 20

Threaded View

  1. #1
    Master

    Data in SQL (.db) filesData in SQL (.db) files GPSFranz's Avatar
    Join Date
    Sep 2010
    Location
    Germany
    Age
    39
    Posts
    51
    Rep Power
    78

    Guide Data in SQL (.db) files

    The SQL (.db) files contain the information that is used to display the routes of the 'Named Trails' (in BaseCamp, and in some of the newer GPS units).
    It would be nice to use the data in these files to create routes, tracks and/or waypoints for the older GPS units (and for MapSource).
    Since the SQL (.db) files are not locked, it is relatively easy to extract the data in the two relevant tables 'trails' and 'trail_segs' (trail segments).
    I started with the SQL file 010-D1215-00.db (for TOPO France v3 DOM-TOM Pro), because it is relatively small (and probably easier to figure out than the larger ones).
    When I search for 'Named Trails' in TOPO France v3 DOM-TOM Pro, only one is found ('GR G1', going roughly North-South on Guadeloupe).
    The table 'trails' lists several trails (with different IDs and names), but I guess these separate trails are part of the whole 'GR G1'.
    The table 'trail_segs' (trail segments) has the column headings dbg_line_id (??), map_id (obviously map ID), link_id (a link is possibly several nodes linked together), trail_id (IDs from table 'trails'), org_node_id (probably origin node ID), dst_node_id (probably distant node ID), org_pnt_lat (probably origin point latitude), org_pnt_lon (probably origin point longitude), dst_pnt_lat (probably distant point latitude), and dst_pnt_lon (probably distant point longitude).
    It should contain most of the interesting data (the GPS coordinates of the route - or track - nodes).
    Unfortunately, the GPS coordinates given are not absolute GPS coordinates, and it is not obvious how the Garmin people arrived at the values given in the table.
    My guess is the values given are somehow coded (or maybe relative) coordinates.
    I sorted the table 'trail_segs' (in a spreadsheet) in various ways (by the data in the different columns).
    From this it is possible to find out how some of the nodes go together to form a chain (or maybe link - a tiny part of the whole trail).
    This is as far as I got.
    Maybe someone with more experience (and/or brainpower) can take a look (and possibly figure it out)?
    Last edited by GPSFranz; 21st August 2012 at 06:28 PM.
    Oregon 450 and Mobile XT 5.00.20w on WM 6.5

    Avatar: Yellow-bellied Marmot (Marmota flaviventris - 'Gelbbauch-Murmeltier' in German).

  2.    Advertissements


 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •