[GRASS-user] Profile from a random path
Jachym Cepicky
jachym.cepicky at centrum.cz
Wed Dec 20 07:30:24 EST 2006
hi,
On Wed, Dec 20, 2006 at 12:08:45PM +0100, Luca Casagrande wrote:
> 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
v.out.ascii in=line format=standard | grep "^ [0-9]*\.*[0-9]* [0-9]*\.[0-9]*$"
would not help ?
Jachym
--
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
-----------------------------------------
OFFICE:
Department of Geoinformation Technologies
Zemedelska 3
613 00, Brno
Czech Republick
e-mail: xcepicky at node.mendelu.cz
URL: http://mapserver.mendelu.cz
Tel.: +420 545 134 514
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20061220/8a1ce07a/attachment.bin
More information about the grass-user
mailing list