[GRASS-git] [OSGeo/grass] f4bc66: r.geomorphon: Fix shape calculations (#1040)

Denis Ovsienko noreply at github.com
Thu Oct 22 19:32:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: f4bc6603890fe4bd71734d63e905fb3933644be9
      https://github.com/OSGeo/grass/commit/f4bc6603890fe4bd71734d63e905fb3933644be9
  Author: Denis Ovsienko <denis at ovsienko.info>
  Date:   2020-10-22 (Thu, 22 Oct 2020)

  Changed paths:
    M raster/r.geomorphon/geom.c

  Log Message:
  -----------
  r.geomorphon: Fix shape calculations (#1040)

The plugin sometimes produced apparently invalid (several orders of
magnitude off or "not a number") values for elongation and width. Add
missing initializations to shape() in geom.c to fix that and the azimuth
calculation as well: when finding a sum of values, initialize the
holding variable with 0; when finding a minimum or a maximum for a set
of values, initialize the holding variable with the first value.




More information about the grass-commit mailing list