[GRASS-dev] [GRASS GIS] #1861: v.net.distance should exclude path to self

GRASS GIS trac at osgeo.org
Thu Jan 24 01:06:53 PST 2013


#1861: v.net.distance should exclude path to self
------------------------------+---------------------------------------------
 Reporter:  mlennert          |       Owner:  grass-dev@…              
     Type:  defect            |      Status:  new                      
 Priority:  normal            |   Milestone:  7.0.0                    
Component:  Vector            |     Version:  svn-trunk                
 Keywords:  network distance  |    Platform:  Unspecified              
      Cpu:  Unspecified       |  
------------------------------+---------------------------------------------
 When using v.net.distance in grass7, giving it all the available nodes as
 from and to nodes, the result is a series of zero length paths from each
 node to itself. v.net.distance should skip paths to self and chose the
 closest node amongst the remaining set of nodes.

 To reproduce:


 {{{
 v.net roadsmajor points=schools_wake op=connect thresh=500 out=network --o
 }}}


 ["thresh" should probably be renamed to "threshold" for consistency]


 {{{
 v.net.distance network out=paths from_layer=2 from_cats=1-999 to_layer=2
 to_cats=1-999 --o
 }}}


 [from_layer and to_layer should probably be 2 by default]


 {{{
 v.db.select paths

 cat|tcat|dist
 7|7|0
 8|8|0
 9|9|0
 28|28|0
 [...]
 }}}



 Moritz

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



More information about the grass-dev mailing list