[GRASS-user] Profile from a random path
Hamish
hamish_nospam at yahoo.com
Wed Dec 20 08:55:59 EST 2006
Luca Casagrande wrote:
>
> I have got a path described by a vector line; i'd like to create the
> elevation profile for that line without using GUI.
maybe something with v.drape?
> 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?
The error message is wrong. That's been broken for ~6 years..
thanks for pointing it out. fixed in CVS + 6.2 branch.
Added this example to the help page:
#spearfish
r.profile elevation.dem res=1000 << EOF
591243,4926344
592509,4922156
594100,4920793
599910,4919365
602929,4919235
604844,4918391
606468,4917190
607766,4915664
EOF
this now works too:
d.where | r.profile elevation.dem
Hamish
More information about the grass-user
mailing list