/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Methods/Mapping/garmin.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Garmin 76CSx
 
2
============
 
3
    - NMEA protocol should be selected in "Setup/Interface"
 
4
    - Could act as mass storage if "USB masstorage" is clicked in 
 
5
    "Setup/Inteface" (USB 1.1 only, 300-400KB/s)
 
6
    - Kernel modules: usbserial, garmin_gps (needed!)
 
7
    - gpsd (in versions 2.36 and 2.37 garmin support is broken), 2.34 works
 
8
        (after each restart reconnect is required?)
 
9
 
 
10
Getting data from GPS
 
11
=====================
 
12
 gpsbabel  [-w -r -t -T] -i garmin -f /dev/tts/USB0 -o gpx -F data.gpx
 
13
    -w  waypoints
 
14
    -r  routes
 
15
    -t  tracks
 
16
    -T  real-time tracks
 
17
    
 
18
    -i  source type, (garmin - specifies a garmin protocol)
 
19
    -f  source file or device
 
20
    -o  output format (gpx - is a standard)
 
21
    -F  output file or device
 
22
 
 
23
 
 
24
Editing Data
 
25
============
 
26
 - Viking is one posibility to edit and prepare data. But it is far from
 
27
 excelence.
 
28
 
 
29
 
 
30
Using Google Earth
 
31
==================
 
32
 - Preparing KML data using gpsbabel
 
33
    gpsbabel -w -r -t -i gpx -f data.gpx -o kml -F data.kml
 
34
 - Edit in google earth 
 
35
    * mapsource still much better
 
36
    * only way to produce routes is tracks
 
37
 - Convert back
 
38
    gpsbabel -w -r -t -i kml -f data.kml -o gpx -F data.gpx
 
39
 - We may transform a set of waypoints to route
 
40
    gpsbabel -w -r -t -i kml -f data.kml  -x transform,rte=wpt -o gpx -F data.gpx
 
41
 
 
42
Using Google Maps
 
43
=================
 
44
 - Google maps are better in routing:
 
45
    * multiple destinations
 
46
    * the routes could be adjust: just try to move a point on route to do that.
 
47
 - GPX export can be done with executing following script on maps.google.com
 
48
 site after the route is prepared:
 
49
    javascript:(function(){var script=document.createElement('script');script.src='http://www.elsewhere.org/GMapToGPX/gmaptogpx.js';document.getElementsByTagName('head')[0].appendChild(script);})()
 
50
 it is possible just to add this information as a bookmark URL and click this
 
51
 bookmark from google-maps page.
 
52
 
 
53
Sending data to GPS
 
54
===================
 
55
    gpsbabel [ -w -r -t ] -i gpx -f data.gpx -o garmin -F /dev/tts/USB0
 
56
 
 
57
Uploading Maps
 
58
==============
 
59
 Pregenerated maps:
 
60
    - http://wiki.openstreetmap.org/wiki/OSM_Map_On_Garmin/Download
 
61
    - imgsupp can be just uploaded to GPS memory card
 
62
    - No search
 
63
    - The routing is indicated, but not actually working
 
64
    - Some of the maps have elevation information
 
65
 
 
66
 Constructing:
 
67
    - See map.osm for details on constructing complex OSM maps, then
 
68
    convert to garmin format, see section below.
 
69
    
 
70
Converting (Through Polish Format)
 
71
==========
 
72
  - Applications:
 
73
    * mkgmap: Do not have routing information support (2008.11), but there is 
 
74
    plans to add. To generate gmapsupp.img call:
 
75
        mkgmap --gmapsupp --net osmcut/* 
 
76
        + There is some costumizations are possible:
 
77
            --map-features=file         change which features are shown and at 
 
78
                                        what levels. Example file with cycling
 
79
                                        optimizations is here: http://svn.openstreetmap.org/applications/utils/export/garmincyclemap/cycling-map-features.csv
 
80
            --levels=levels_code        set correspondance between levels on the 
 
81
                                        map and zoom levels in the device
 
82
            
 
83
        
 
84
    * OSMGarminMap: polish, outdated (not support for 0.5) api, not routable
 
85
    * os2mp: polish format, basic routing support, not searchable
 
86
        There is problem with some of produced mp files (some points are too
 
87
        close) and cgpsmapper are complaining on them
 
88
        - Sources available:
 
89
            http://code.google.com/p/osm2mp/source/browse/#svn/trunk/osm2mp
 
90
        - Usage: osm2mp.pl <filename> > filename.mp 
 
91
        - Automatization script is provided
 
92
    * There is 'radomir' developing another app, and publishing data at
 
93
        http://emexes.powweb.com/osm/download.html
 
94
    but there are still no sources
 
95
  
 
96
  - Converting from Polish Format
 
97
    * cgpsmapper -e file.mp
 
98
        -e - asks to ignore errors
 
99
    - However, cgpsmapper is really problematic with big files. Even 5mb 
 
100
    .mp file is causing problems ( or it's badly generated by os2mp?). So,
 
101
    the maps should be sliced in really small pieces.
 
102
    I tried 3MB .mp file, it was working, so probably the OSM data should be
 
103
    split somewhere around 0.5x0.5 or a little bit smaller.
 
104
 
 
105
    
 
106
  - Aggregating multiple image files into single imagesupp.img
 
107
    * sendmap20 -l file1.img file2.img
 
108
    + Only version 20
 
109
 
 
110
  - Merging .img files in already existing gmapsupp.img
 
111
    mkgmap.jar --gmapsupp gmapsupp.img gmapsupp_new.img
 
112
    * sendmap20 is also capable of merging files
 
113
 
 
114
Including elevation data
 
115
========================
 
116
 - The .img files for street and elevation data can be separatly obtained as
 
117
 described in map_osm.txt. 
 
118
    a) Get planet.osm, rip it to the appropriate region, cut in pieces and
 
119
    convert to img.
 
120
    b) Get elevation files, convert them to OSM, combine in a single OSM,
 
121
    rip to the appropriate region, cut in pieces and convert to img
 
122
 
 
123
 - More automatic and fast way to construct using web interface at:
 
124
        http://touren.mospace.de/kachel.html
 
125
 There is tool which allow to select region on OpenStreetMaps and get for the
 
126
 selected region a list of links to the already produced .img files (without 
 
127
 elevation and routing) and parameters to strm2osm to get coresponding OSM 
 
128
 files with elevation countours (all names of image files are starting from 
 
129
 "6", the correspondent osm files will start from "5"  with the same rest, so 
 
130
 there are easy correpondance between street and elevation maps). 
 
131
  * Then the mkgmap should be used to produce 'img' files from this elevation 
 
132
 files (there is no routing anyway)
 
133
        for f in 5*.osm 5*.osm.gz; do echo $f; mkgmap $f; done
 
134
 
 
135
 - Finally, for both solutions the images should be glued together in a 
 
136
 single gmapsupp.img
 
137
        mkgmap --gmapsupp 6*.img 5*.img
 
138
 Some users reporting what mkgmap is not always perform well and recomend 
 
139
 using Windows tool, called GMapTool(wgmaptool).
 
140
 
 
141
mapsource
 
142
=========
 
143
  - Pregenerate image tiles can be found here (there is no addresses and 
 
144
 routing)
 
145
    http://osm.ammit.de/osm/latest/img/
 
146
 - Pregenerated images, with routing
 
147
    http://emexes.powweb.com/osm/download.html
 
148
    http://gpsmapsearch.com/osm/mp/
 
149
 - This map allows to find numbers to download
 
150
    http://ulrichkuester.de/OSM/CoordinateToOSMTile.html
 
151
 - Then MapSetToolkit + full cGPSMapper should be used to
 
152
    generate MapSource data. 
 
153
 
 
154
 
 
155
Adjusting Look&Feel
 
156
===================
 
157
 The look and feel could be changed using so called 'typ' files. Editors:
 
158
    - OSM Composer (Map Composer), quite flexible java application, but 
 
159
    in German language.
 
160
        http://wiki.openstreetmap.org/wiki/OSM_Composer
 
161
    - GenTyp (Windows).
 
162
 This one may be good (provided by Computerteddy user)
 
163
    http://openstreetmap.teddynetz.de/latest/teddy.typ
 
164
 
 
165
 - Upload is quite easy, just join it with gmapsupp.img as usual
 
166
    sendmap -l gmapsupp.img file.TYP
 
167
 
 
168
POI
 
169
===
 
170
  The POI's for Garmin are provided by .gpi files, it is possible to convert
 
171
 using gpsbabel waypoints from GPX file, to poi in GPI.
 
172
     gpsbabel -w -i gpx -f waypoints.gpx -o garmin_gpi -F poi.gpi
 
173
 - To install should be copied to the folder
 
174
    /Garmin/POI
 
175
 
 
 
b'\\ No newline at end of file'