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 list.

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 nikos.alexand...@felis.uni-freiburg.de:  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

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 of the line.

[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: