[GRASS-dev] Re: [GRASS GIS] #991: v.out.gpsbabel export fails with layer=2

GRASS GIS trac at osgeo.org
Fri Sep 10 12:03:50 EDT 2010


#991: v.out.gpsbabel export fails with layer=2
-----------------------+----------------------------------------------------
  Reporter:  needelsd  |       Owner:  hamish                                
      Type:  defect    |      Status:  closed                                
  Priority:  normal    |   Milestone:  6.4.0                                 
 Component:  Vector    |     Version:  6.4.0 RCs                             
Resolution:  fixed     |    Keywords:  GPS GPX export, v.out.gpsbabel, m.proj
  Platform:  MacOSX    |         Cpu:  Unspecified                           
-----------------------+----------------------------------------------------
Changes (by donxfive):

 * cc: donxfive (added)


Comment:

 I still get "Error reading categories" with vectors that have layers other
 than 1.

 I'm using GRASS version 6.4.0svn on my Ubuntu laptop (w/ GNU sed version
 4.1.5), and I fixed the problem by replacing

 {{{
 sed -e 's/^\([PLBCFKA]\)/#\1/' -e 's/^ 1     /# 1  /'
 }}}
 with

 {{{
 sed -r -e 's/^[PLBCFKA]/#&/' -e 's/^ [1-9]+  /#&/'
 }}}
 on line 253 of the
 [http://svn.osgeo.org/grass/grass/branches/releasebranch_6_4/scripts/v.out.gpsbabel/v.out.gpsbabel
 v.out.gpsbabel script]. (The problem sed command is also used in
 v.out.gpsbabel for 6.5-svn, and in v.out.gps for 7.0-svn.)

 I've had no problems since I did this, but I'm not sure if it would work
 for everyone.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/991#comment:8>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list