[GRASS-user] Fwd: Python-Loop over points
Johannes Radinger
JRadinger at gmx.at
Mon Feb 7 08:01:51 EST 2011
Hello again,
does anyone have an idea how to do that (described below).
It is like the "Iterator" from the new ArcGIS 10 modeller.
What is the equivalent pyhton command to iterate/loop over
points in a point-file?
Maybe someone can give a python example for my problem below.
Thank you
Johannes
-------- Original-Nachricht --------
Datum: Wed, 02 Feb 2011 12:39:34 +0100
Von: "Johannes Radinger" <JRadinger at gmx.at>
An: grass-user at lists.osgeo.org
Betreff: Python-Loop over points
Hello,
I am performing e.g. the r.stream.basins calcutlation in python:
grass.run_command("r.stream.basins",
dir = "flow_direction",
points = "point1",
basins = "output")
that's working perfectly in the case of one single point in "point1".
How can I do that multiple times when the point layer consist of e.g. 5
points and I want to create an output for each point (create 5 output rasters).
How can that be done in a python script?
thank you
Johannes
--
NEU: FreePhone - kostenlos mobil telefonieren und surfen!
Jetzt informieren: http://www.gmx.net/de/go/freephone
--
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail
More information about the grass-user
mailing list