[GRASS-git] [OSGeo/grass] 46db58: grass.temporal: Fix swapped rows and cols in map m...
Anna Petrasova
noreply at github.com
Mon Jul 13 09:58:04 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 46db5818f1288da21c47a8a36d35eda21623496f
https://github.com/OSGeo/grass/commit/46db5818f1288da21c47a8a36d35eda21623496f
Author: Anna Petrasova <kratochanna at gmail.com>
Date: 2026-07-13 (Mon, 13 Jul 2026)
Changed paths:
M python/grass/temporal/c_libraries_interface.py
M python/grass/temporal/space_time_datasets.py
A python/grass/temporal/tests/grass_temporal_map_metadata_test.py
Log Message:
-----------
grass.temporal: Fix swapped rows and cols in map metadata (#7681)
The ctypes interface assigned the number of columns to the rows key and
the number of rows to the cols key, for raster as well as 3D raster maps.
The swapped values are stored in the temporal database when a map is
registered and are reported by t.info, which therefore disagreed with
r.info and r3.info. The number of cells was not affected, because it is
the product of both.
Maps registered before this fix keep the swapped values in the temporal
database until they are registered again.
Update the doctests which asserted the swapped values and add a test
comparing the metadata read through the interface with the output of
r.info and r3.info.
The test was written with the help of Claude Code.
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