[GRASS-dev] [GRASS GIS] #184: v.in.garmin - detect gpstrans or gardump instead of user flag

GRASS GIS trac at osgeo.org
Fri Jun 6 10:43:59 EDT 2008


#184: v.in.garmin - detect gpstrans or gardump instead of user flag
-------------------------+--------------------------------------------------
 Reporter:  kyngchaos    |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect       |      Status:  new                      
 Priority:  minor        |   Milestone:  6.4.0                    
Component:  default      |     Version:  6.3.0                    
 Keywords:  v.in.garmin  |  
-------------------------+--------------------------------------------------
 v.in.garmin uses a flag for the user to specify whther to use gardump as
 an alternate to the default gpstrans to get data from the GPS.  This
 requires the user to know which is installed in their system, or bundled
 with a binary distribution of GRASS.  This can also confuse the user if
 gardump is installed (whether they realize it or not) and they don't use
 the flag, then v.in.garmin tells them that gpstrans is not installed.
 Something like:

 {{{
 if [ "`type -t gpstrans`" ] ; then
         USE_GPSTRANS=1
 else
     if [ "`type -t gardump`" ] ; then
         USE_GARDUMP=1
     else
             g.message -e "either gpstrans or gardump is required, install
 one first\
             http://gpstrans.sourceforge.net\
             http://www.snafu.org"
         exit 1
     fi
 fi
 }}}

 Then test for USE_GPSTRANS or USE_GARDUMP later in the script for which to
 use.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/184>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list