[GRASS-user] Profile from a random path
Luca Casagrande
luca.casagrande at gmail.com
Wed Dec 20 06:08:45 EST 2006
On Wed, 20 Dec 2006 12:14:45 +1300
Hamish <hamish_nospam at yahoo.com> wrote:
> doktoreas wrote:
> > I was looking for a way to create the same output of r.profile, for a
> > random vector line instead of 2 points..
> > Anyone got any idea to start from?
>
>
> If I understand correctly, r.profile will do this, just give multiple
> coord pairs for each segment.
>
> [profile=east,north[,east,north,...]]
Thanks for your answers!
I have got a path described by a vector line; i'd like to create the elevation profile for that line without
using GUI.
I thought about this:
1) splitting the line in points by a certain distance,
2) create an ascii file with the coordinates of each points
3) Use r.profile as described in the example 3 to create the profile for the ascii file.
I focused on the 3rd problem:
In the r.profile man page, in the example 3 section, it says this:
[..]
Example 3
Extract a profile with coordinates provided from standard input or an external file:
First create a points file with d.where
d.where > saved.points
Then pipe the points file into r.profile
cat saved.points | r.profile input=elev.rast output=profile.pts
[..]
The matter is that if i run the command line shown in the example, it doesn't work, cause it need -i flag
or to set the profile= one with the coordinates of points.
Any idea?
Thanks
Luca
--
Help QGIS development! Make a donation right now at http://xrl.us/supportqgis
LINUX User #411601
GENTOO-GIS Development Team
jabber: casagrande at jabber.linux.it
More information about the grass-user
mailing list