[GRASS-dev] spanning tree and steiner tree problems?

Michael Barton Michael.Barton at asu.edu
Sat Oct 6 23:27:54 PDT 2012


Hi Moritz,

Thanks to your help, I now have been able to run through a number of the vector network operations. Two that don't seem to work are v.net.steiner and v.net.spanningtree. But perhaps I am not doing it right.

Here is the setup using Highschools from the schools_wake vector and streets_wake in the sc_08 demo data set.

First I connect highschools (previously extracted from schools_wake) with the streets.

v.net<http://v.net> --overwrite input=streets_wake at grass7vect_sqlite points=highschools at spatialtech2012 output=hs_net operation=connect alayer=1 nlayer=2 thresh=200

When I run v.net.stiener, it gives no error but doesn't create anything either. Here is the command:

v.net.steiner input=hs_net at spatialtech2012 output=hs_steiner type=line alayer=1 nlayer=2 tcats=4,7,11,12,37,49,50,65,67,69,77,83,91,101,103,115,117,138,153,158,164,165

When I run v.net.spanningtree, I do get results, but it is a complex street network that is almost the same as the original street network. Here is the command I am using:

v.net.spanningtree --overwrite input=hs_net at spatialtech2012 output=hs_spanningtree alayer=1 nlayer=2

Any suggestions?

Michael

____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice:  480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax:          480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu











-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20121007/bedc7ea3/attachment.html>


More information about the grass-dev mailing list