[GRASS-dev] [GRASS GIS] #1760: Cannot query vector network nodes

GRASS GIS trac at osgeo.org
Sat Oct 6 18:44:17 PDT 2012


#1760: Cannot query vector network nodes
-------------------------+--------------------------------------------------
 Reporter:  cmbarton     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  major        |   Milestone:  6.4.3                    
Component:  Vector       |     Version:  unspecified              
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by cmbarton):

 Here is additional information.

 v.net does not create an attribute table for nodes, even if they are
 created from a set of points that DO have an attribute table. For example
 (using the sc_08 demo data):

 {{{

 v.net input=streets_wake at grass7vect_sqlite
 points=firestations at grass7vect_sqlite output=firestation_network
 operation=connect alayer=1 nlayer=2 thresh=100

 }}}

 creates a network of streets and firestations. The attributes from the
 streets_wake file get copied over into the arcs of the new
 forestation_network vector network file. But the attributes from the
 firestations do not. This is the cause of the inability to query the
 nodes. If I manually run v.db.connect to connect the nodes of
 forestation_network to the forestations attribute table (connected to
 nodes in layer 2), then I CAN query the nodes.

 So the main problem is in how v.net creates networks not how v.what (and
 wxgui) queries the network. In fact, there is no problem querying nodes in
 layer 2 once they have an attribute table.

 BUT, querying nodes still should at least show the cat values, even if
 there is no attribute table. So there is still a query issue here.

 Michael

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



More information about the grass-dev mailing list