[GRASS-user] r.profile fails to print elevation

Anna Petrášová kratochanna at gmail.com
Sun Jun 7 09:17:58 PDT 2015


Hi,

On Sun, Jun 7, 2015 at 11:02 AM, Stuart Edwards <sedwards2 at cinci.rr.com>
wrote:

> Hi -
>
> Great to see that r.profile is now working so well - at least in
> interactive mode through the wxgui profile tool.  However, I'm having
> problems using r.profile directly where I use a table of vector points to
> define the profile.  r.profile reads the vector file and computes the
> transect lengths, but does not appear to query the raster map at each point
> - or if it does, the results are not printed.  Interactively, the raster
> map (DEM) works well as the subject map for analysis.  Here's what is
> returned from r.profile:
>
> r.profile input=DEM at mymaps output=profilepoints.csv file=pipe_sp.csv
> resolution=10 units=feet
> Using resolution: 32.8084 [feet]
> Output columns:
> Along track dist. [feet], Elevation
> Approx. transect length: 951.007507 [feet]
> Approx. transect length: 1598.138340 [feet]
> Approx. transect length: 709.834684 [feet]
> Approx. transect length: 2040.197805 [feet]
> Approx. transect length: 113.646183 [feet]
> Approx. transect length: 259.883910 [feet]
> Approx. transect length: 333.752161 [feet]
> Approx. transect length: 871.612186 [feet]
>

You specified output file, so the profile elevation should be written into
that file profilepoints.csv. The rest of the output you see are only
messages. If you don't specify output parameter, you get the entire profile
on the standard output.

>
> a minor problem is that even when the units are specified as 'feet', the
> resolution is read as 'meters'.  Easy to work around - but could be
> confusing if not noticed.
>

thanks for noticing, I will look into it

Anna

>
> Any assistance much appreciated.
>
> Stu
>
> GRASS 7.0.0 64 bit  2015-01-20 (Barton Binaries)
> Mac OS X 10.10.3
> MacBookPro 2014
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150607/1c651be9/attachment.html>


More information about the grass-user mailing list