[GRASS-git] [OSGeo/grass] 8a85c7: d.vect.thematic: Do not show decimal places for in...

Vaclav Petras noreply at github.com
Tue Jan 30 13:54:07 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 8a85c754ef6a8f270dee694d88d120d4ea96a6f3
      https://github.com/OSGeo/grass/commit/8a85c754ef6a8f270dee694d88d120d4ea96a6f3
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2024-01-30 (Tue, 30 Jan 2024)

  Changed paths:
    M display/d.vect.thematic/legend.c
    M display/d.vect.thematic/local_proto.h
    M display/d.vect.thematic/main.c

  Log Message:
  -----------
  d.vect.thematic: Do not show decimal places for ints (#3096)

Number of minimal decimal places is fixed to 2 in the legend generated by d.vect.thematic. This adds logic which changes the number of decimal places to 0 when the column type is integer (DB_C_TYPE_INT).

This does not let user decide the number, but it covers more cases than the current code and it prepares a way for making it parametrized in the future.




More information about the grass-commit mailing list