[GRASS-git] [OSGeo/grass] 1c0a18: r.category: improve JSON and parameters (#5840)

Anna Petrasova noreply at github.com
Mon Jun 23 08:32:16 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 1c0a18238f49dbfb951919dfd1a2f03881002918
      https://github.com/OSGeo/grass/commit/1c0a18238f49dbfb951919dfd1a2f03881002918
  Author: Anna Petrasova <kratochanna at gmail.com>
  Date:   2025-06-23 (Mon, 23 Jun 2025)

  Changed paths:
    M raster/r.category/main.c
    M raster/r.category/r.category.html
    M raster/r.category/r.category.md
    M raster/r.category/test_rcategory_doctest.txt
    M raster/r.category/tests/r_category_test.py
    M raster/r.clump/tests/test_clump.py

  Log Message:
  -----------
  r.category: improve JSON and parameters (#5840)

- use format option instead of output_format while keeping backwards compatibility
- introduce new 'label_format' that used to be 'format' parameter
- JSON key "label" instead of "description"
- in JSON print null when no color or label is found for a category



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list