Re: [GRASS-user] Re: Feed and manipulate the result of "v.distance -pa" in python

2010-08-06 Thread Nikos Alexandris
Nikos Alexandris: > > distances = grass.read_command("v.distance",\ > > flags = 'pa',\ > > _from = reference_points_map,\ > > to = lowres_vector_grid,\ > > column = gridcell_column,\ > > to_column = "cat",\ > > upload = "to_attr") Martin Landa wrote: > btw, there is no need for '\' at the

Re: [GRASS-user] Re: Feed and manipulate the result of "v.distance -pa" in python

2010-08-06 Thread Martin Landa
Hi, 2010/8/6 Nikos Alexandris : >  distances = grass.read_command("v.distance",\ >  flags = 'pa',\ >  _from = reference_points_map,\ >  to = lowres_vector_grid,\ >  column = gridcell_column,\ >  to_column = "cat",\ >  upload = "to_attr") btw, there is no need for '\' at the of the line. Martin

Re: [GRASS-user] Re: Feed and manipulate the result of "v.distance -pa" in python

2010-08-06 Thread Nikos Alexandris
On Wednesday 04 of August 2010 15:20:58 schorschli wrote: > For your task the use of lists and the split tool may help. > The different lines have are seperated by a '\n' (which is interpreted as > a new line). After splitting the string into a line list you can make a > loop each item of this lis

[GRASS-user] Re: Feed and manipulate the result of "v.distance -pa" in python

2010-08-04 Thread schorschli
For your task the use of lists and the split tool may help. The different lines have are seperated by a '\n' (which is interpreted as a new line). After splitting the string into a line list you can make a loop each item of this list. Something like this: output='7839|16\n7839|17\n7839|22\n7839|