v.in.gpsbabel.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <H2>DESCRIPTION</H2>
  2. <EM>v.in.gpsbabel</EM> allows the user to import waypoint, route, and track
  3. data from a locally connected GPS receiver or a text file containing
  4. GPS data of many common formats. Translation is done via the
  5. <EM><A HREF="http://www.gpsbabel.org">gpsbabel</a></EM> program.
  6. <P>
  7. This software is not intended as a primary means of navigation.
  8. <H2>NOTES</H2>
  9. <em>v.in.gpsbabel</em> automatically reprojects data using the
  10. projection settings of the current location.
  11. The default input data projection is lat/lon WGS84. If your GPS outputs data
  12. using another projection or map datum, you may include the
  13. <EM><A HREF="http://proj.maptools.org">PROJ.4</a></EM>
  14. parameters defining your projection in the <b>proj</b> option and
  15. <em>v.in.gpsbabel</em> will reproject your data accordingly.
  16. Great care must be taken to get these parameters correct!
  17. The automatic transform may be skipped by using the <b>-k</b> flag in which
  18. case the data will be imported unprojected, as it appears in the <b>input</b>.
  19. <P>
  20. Route and Track data may be uploaded as a series of points by using the <B>-p</B>
  21. flag, otherwise they will be imported as lines. You can run <EM>v.in.gpsbabel</EM>
  22. multiple times and merge the line and point vectors with the <EM>v.patch</EM>
  23. command if you want, but take care when merging dissimilar attribute tables.
  24. <H2>EXAMPLES</H2>
  25. <h3>GPS device connected via USB adapter</h3>
  26. Import waypoints, tracks, routes from /dev/ttyUSB0 and save
  27. to a GRASS vector map:
  28. <div class="code"><pre>
  29. v.in.gpsbabel -w input=/dev/ttyUSB0 format=garmin output=waypoints
  30. v.in.gpsbabel -t input=/dev/ttyUSB0 format=garmin output=tracks
  31. v.in.gpsbabel -r input=/dev/ttyUSB0 format=garmin output=routes
  32. </pre></div>
  33. <h3>GPS device connected via serial adapter</h3>
  34. Import waypoint data from a Garmin GPS connected at /dev/ttyS0 and save
  35. to a GRASS vector map named <i>waypoints</i>:
  36. <div class="code"><pre>
  37. v.in.gpsbabel -w input=/dev/ttyS0 format=garmin output=waypoints
  38. </pre></div>
  39. <h3>Import track data from a GPX</h3>
  40. Import track data from a GPX text file and save to a GRASS vector map
  41. named <i>tracks</i>.
  42. <!-- (currently buggy) The gpxlogger program distributed with
  43. <a href="http://gpsd.berlios.de/">GPSd</a> >2.30 is a good program for
  44. creating these logs. -->
  45. <div class="code"><pre>
  46. v.in.gpsbabel -t input=gpslog.gpx format=gpx output=tracks
  47. </pre></div>
  48. <h3>Import route data from GPS connected at /dev/gps</h3>
  49. Import route data as a series of points from a Garmin GPS connected at
  50. /dev/gps and save to a GRASS vector map named <i>routePoints</i>:
  51. <div class="code"><pre>
  52. v.in.gpsbabel -r -p file=/dev/gps format=garmin output=routePoints
  53. </pre></div>
  54. <H2>SEE ALSO</H2>
  55. <EM><A HREF="db.execute.html">db.execute</A></EM><BR>
  56. <EM><A HREF="v.in.ascii.html">v.in.ascii</A></EM><BR>
  57. <EM><A HREF="v.in.garmin.html">v.in.garmin</A></EM><BR>
  58. <EM><A HREF="v.db.connect.html">v.db.connect</A></EM><BR>
  59. <EM><A HREF="v.patch.html">v.patch</A></EM><BR>
  60. <BR>
  61. <A HREF="http://www.gpsbabel.org">gpsbabel</a> from gpsbabel.org<BR>
  62. cs2cs from <A HREF="http://proj.maptools.org">PROJ.4</a><BR>
  63. <P>
  64. <H2>AUTHORS</H2>
  65. Claudio Porta and Lucio Davide Spano, students of Computer Science at
  66. University of Pisa (Italy).<br>
  67. Commission from Faunalia Pontedera (PI)<br><br>
  68. Based on <em>v.in.garmin</em> for GRASS 6.0 by Hamish Bowman<br>
  69. and <em>v.in.garmin.sh</em> for GRASS 5 by Andreas Lange
  70. <BR>
  71. <!--
  72. When we tested the script with a Garmin GPS we noticed that importing waypoints
  73. the <i>time</i> field is not correctly set. The data reported is
  74. a default system time, while with a gpx text file this thing did not
  75. happen. We believe that is a <i>gpsbabel</i> trouble in translating
  76. from <i>garmin</i> to <i>xcsv</i> ...
  77. -->
  78. <p>
  79. <i>Last changed: $Date$</i>