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