[GRASS-git] [OSGeo/grass] 374f6b: lib/vector: Reject out of range categories when re...

R Sai Pranav noreply at github.com
Wed Sep 23 10:00:05 PDT 2026


  Branch: refs/heads/releasebranch_8_5
  Home:   https://github.com/OSGeo/grass
  Commit: 374f6be74bce8a4da420888f63c41c8a9de60e11
      https://github.com/OSGeo/grass/commit/374f6be74bce8a4da420888f63c41c8a9de60e11
  Author: R Sai Pranav <rajasaipranav0 at gmail.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M lib/vector/Vlib/ascii.c
    A vector/v.in.ascii/tests/conftest.py
    A vector/v.in.ascii/tests/v_in_ascii_categories_test.py

  Log Message:
  -----------
  lib/vector: Reject out of range categories when reading ASCII (#7844)

Vect_read_ascii() passed the layer and category straight to
Vect_cat_set(), whose own range check is commented out, so a value outside
the documented 1 - GV_CAT_MAX range was stored and only caused trouble
later. A point carrying a negative category was skipped by v.out.ogr
without -c and exported twice with it.

Reject the feature at import instead. Category 0 stays allowed, since OGR
layers use it.

Fixes #6563



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