[GRASS-dev] [GRASS GIS] #2536: r.slope.aspect converts to meters

#2536: r.slope.aspect converts to meters
-----------------------------------+----------------------------------------
Reporter: annakrat | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Projections/Datums | Version: svn-trunk
Keywords: r.slope.aspect, units | Platform: All
      Cpu: Unspecified |
-----------------------------------+----------------------------------------
I am getting here to an old problem when r.slope.aspect converts
automatically horizontal distance to meters. Details are described in this
old discussion (only Helena and Glynn involved):

http://lists.osgeo.org/pipermail/grass-dev/2004-January/013630.html

As a result of this behavior, users with location in feet, have to use
zscale parameter 0.3048 to get correct result. Most users have their DEMs
with the same horizontal and vertical units and they would assume no
vertical scaling is needed, and they end up with incorrect results.

This behavior is very unintuitive and is source of many errors.

I attached a diff. I added a warning when running it in location with
units other than meters and zscale different than one (that's the case I
was mentioning above). I know some old scripts will start to give wrong
results, but we can avoid future problems of new users.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2536&gt;
GRASS GIS <http://grass.osgeo.org>

#2536: r.slope.aspect converts to meters
-----------------------------------+----------------------------------------
Reporter: annakrat | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Projections/Datums | Version: svn-trunk
Keywords: r.slope.aspect, units | Platform: All
      Cpu: Unspecified |
-----------------------------------+----------------------------------------

Comment(by annakrat):

If no objections, I will commit it tomorrow.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2536#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2536: r.slope.aspect converts to meters
---------------------------------+------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.0.0
Component: Projections/Datums | Version: svn-trunk
Resolution: fixed | Keywords: r.slope.aspect, units
  Platform: All | Cpu: Unspecified
---------------------------------+------------------------------------------
Changes (by annakrat):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:1 annakrat]:
> If no objections, I will commit it tomorrow.
Done in r64177 and backported.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2536#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>