[GRASS-user] special python expressions in v.distance

Johannes Radinger JRadinger at gmx.at
Thu Apr 21 06:27:27 EDT 2011


Hello,

I want to use v.distance in a pyton script.

I try:
    grass.run_command("v.distance",
                      flags="o",
                      from="points",
                      to="line",
                      upload="to_x,to_y",
                      col="to_X,to_Y")

but I fail because the expression FROM is already
used by python...

what is the correct way to handle that problem?

thank you in advance

/j
-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the grass-user mailing list