[GRASS-dev] Re: [GRASS GIS] #1045: strange behaviour in v.net.path

GRASS GIS trac at osgeo.org
Tue Oct 12 07:47:50 EDT 2010


#1045: strange behaviour in v.net.path
------------------------------------------+---------------------------------
 Reporter:  manuele                       |       Owner:  grass-dev@…              
     Type:  defect                        |      Status:  new                      
 Priority:  normal                        |   Milestone:  6.4.1                    
Component:  Vector                        |     Version:  unspecified              
 Keywords:  network analysis, v.net.path  |    Platform:  Linux                    
      Cpu:  x86-32                        |  
------------------------------------------+---------------------------------

Comment(by mmetz):

 Replying to [comment:2 huhabla]:
 > I can reproduce this behavior, here is a simple patch:

 I can reproduce it too with 6.4, it's fixed in 6.5 and 7 along with BUG1
 and BUG2.

 The patch below only sets costs to zero, node 9 is only reachable in 6.5
 and 7.
 >
 {{{
 > grass64_release/vector/v.net.path> svn diff
 > Index: path.c
 > ===================================================================
 > --- path.c      (Revision 43825)
 > +++ path.c      (Arbeitskopie)
 > @@ -258,6 +258,7 @@
 >
 >             if (ret == 0) {
 >                 sp = SP_UNREACHABLE;
 > +               cost = 0;
 >                 unreachable++;
 >                 G_warning(_("Point %f,%f is not reachable from "
 >                             "point %f,%f"), tx, ty, fx, fy);
 >
 >
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1045#comment:4>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list