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

GRASS GIS trac at osgeo.org
Sat Sep 11 12:55:53 EDT 2010


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

Comment(by donxfive):

 {{{
 is the change to the first sed expression just a simplification, or does
 it contribute to the bug?
 }}}

 The answer is "yes and no:" when I used the plus sign in the second
 expression, I needed to invoke sed with the "-r" option to get it to work,
 and that caused sed to choke on the first expression so I changed it.

 By the way, I just tried
 {{{
 sed  -e 's/^\([PLBCFKA]\)/#\1/' -e 's/^ [1-9]\+  /#&/'
 }}}
 (ie using sed without the "-r" option, and using "\+" rather than "+" in
 the second expression), and now the first expression works fine. I think
 that both the "-r" option and "\+" are specific to GNU sed, so I'm not
 sure about the portability of my workaround. Maybe something like this
 would be better:
 {{{
 sed  -e 's/^\([PLBCFKA]\)/#\1/' -e 's/^ [1-9][1-9]*  /#&/'
 }}}
 This works the same as my first workaround, but is probably more portable.

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



More information about the grass-dev mailing list