[GRASS-git] [OSGeo/grass] 82fb7b: v.random: do not transfer cat from area if attribu...

Māris Nartišs noreply at github.com
Sun Sep 25 12:31:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 82fb7b8e93a8b87f7de827c0b1f98992759ce7a1
      https://github.com/OSGeo/grass/commit/82fb7b8e93a8b87f7de827c0b1f98992759ce7a1
  Author: Māris Nartišs <maris.gis at gmail.com>
  Date:   2022-09-25 (Sun, 25 Sep 2022)

  Changed paths:
    M vector/v.random/main.c

  Log Message:
  -----------
  v.random: do not transfer cat from area if attributes are coppied too (#2537)

Current code creates two cat entries for each point on the same level -
one from area point is in and one matching new entry in the database.
As entries in db have new cat values, old cat value points to a random
or non-existing entry in the db thus causing a mess.
Fixes #2475.




More information about the grass-commit mailing list