<div dir="ltr">No opinion on what should be the default, but I definitely think it to be useful to have the option to switch to meters if desired (especially useful when using latlon in which case current units will probably be less useful)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 5:45 PM, GRASS GIS <span dir="ltr"><<a href="mailto:trac@osgeo.org" target="_blank">trac@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">#2417: r.profile should report distance in location units<br>
--------------------------------+-------------------------------------------<br>
 Reporter:  annakrat            |       Owner:  grass-dev@…<br>
     Type:  enhancement         |      Status:  new<br>
 Priority:  normal              |   Milestone:  7.1.0<br>
Component:  Projections/Datums  |     Version:  svn-trunk<br>
 Keywords:  r.profile, units    |    Platform:  All<br>
      Cpu:  Unspecified         |<br>
--------------------------------+-------------------------------------------<br>
<br>
Comment(by annakrat):<br>
<br>
 Replying to [comment:1 mlennert]:<br>
 > Replying to [ticket:2417 annakrat]:<br>
 > > r.profile reports the length in meters no matter which units the<br>
 current location uses. It would be better if it could report it in the<br>
 current units.<br>
 ><br>
 > The attached patch is a very simple attempt to use location units. I<br>
 don't have time right now to revert the GUI profile tool changes to check<br>
 whether this solves the problem, but at least with this patch distances<br>
 are in location units.<br>
<br>
 Thanks for looking into this. The patch seems to work. I got confused from<br>
 the handling of units in the library which is completely weird, and I<br>
 thought the conversion is not working properly but it's fortunately<br>
 computed correctly. I improved the patch. The only problem is the name of<br>
 the units which is in case of Foot_US not recognized and<br>
 `G_database_unit_name` gives just ''unit''. As a result, r.profile now<br>
 prints something like this<br>
<br>
 {{{<br>
 Output Format:<br>
 [Along Track Dist. (units)] [Elevation]<br>
 Approx. transect length [205.092833] units<br>
 ...<br>
 }}}<br>
<br>
 but this is a different problem.<br>
<br>
 ><br>
 > The question is whether this should be the default behaviour of<br>
 r.profile, or whether this should be only activated when a flag is set.<br>
<br>
 In my opinion, in most cases you want the current units. If you think the<br>
 flag would be useful, it should switch to meters and by default (unset<br>
 flag) use current units. Anyone has any opinion on adding this flag?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Ticket URL: <<a href="http://trac.osgeo.org/grass/ticket/2417#comment:2" target="_blank">http://trac.osgeo.org/grass/ticket/2417#comment:2</a>><br>
GRASS GIS <<a href="http://grass.osgeo.org" target="_blank">http://grass.osgeo.org</a>><br>
<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a></font></span></blockquote></div><br></div>