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

GRASS GIS trac at osgeo.org
Mon Jan 28 02:23:46 PST 2013


#1861: v.net.distance should exclude path to self
--------------------------+-------------------------------------------------
  Reporter:  mlennert     |       Owner:  grass-dev@…              
      Type:  defect       |      Status:  closed                   
  Priority:  normal       |   Milestone:  7.0.0                    
 Component:  Vector       |     Version:  svn-trunk                
Resolution:  wontfix      |    Keywords:  network distance         
  Platform:  Unspecified  |         Cpu:  Unspecified              
--------------------------+-------------------------------------------------
Changes (by mlennert):

  * status:  new => closed
  * resolution:  => wontfix


Comment:

 Replying to [comment:2 mlennert]:
 > Replying to [comment:1 mmetz]:
 > > Replying to [ticket:1861 mlennert]:
 > > > 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.
 > >
 > > Technically, this is possible and actually not very difficult, but it
 would require to rewrite v.net.distance from scratch.
 > >
 > > Currently, the module starts with all 'to' nodes and calculates the
 shortest path of all nodes to all 'to' nodes. Then the module iterates
 through the 'from' nodes and finds for each 'from' node the nearest 'to'
 node. At this point it is too late to exclude paths to self because that
 is the only path computed.
 >
 > Ok, then I'll just add a hint to the man page indicating that from and
 to nodes should be different.

 Done in all branches.

 Moritz

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



More information about the grass-dev mailing list