[GRASS-dev] [GRASS GIS] #2417: r.profile should report distance in location units
GRASS GIS
trac at osgeo.org
Tue Sep 16 14:38:54 PDT 2014
#2417: r.profile should report distance in location units
--------------------------------+-------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: Projections/Datums | Version: svn-trunk
Keywords: r.profile, units | Platform: All
Cpu: Unspecified |
--------------------------------+-------------------------------------------
Comment(by mlennert):
Replying to [comment:2 annakrat]:
> The only problem is the name of the units which is in case of Foot_US
not recognized and `G_database_unit_name` gives just ''unit''. As a
result, r.profile now prints something like this
>
> {{{
> Output Format:
> [Along Track Dist. (units)] [Elevation]
> Approx. transect length [205.092833] units
> ...
> }}}
>
> but this is a different problem.
It seems to me that it should be possible to get the correct units name
from the PROJ_UNITS file, but I just can't find a library function to do
just that. I'm sure it must exist...
Moritz
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2417#comment:3>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list