[GRASS-git] [OSGeo/grass] e2e9b3: i.ortho.elev: add test file (#5833)

Jayneel Shah noreply at github.com
Mon Jun 9 17:46:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: e2e9b358ee8fc51a2cd5fd8c20ea084537b6e29e
      https://github.com/OSGeo/grass/commit/e2e9b358ee8fc51a2cd5fd8c20ea084537b6e29e
  Author: Jayneel Shah <80264736+jayneel-shah18 at users.noreply.github.com>
  Date:   2025-06-10 (Tue, 10 Jun 2025)

  Changed paths:
    A imagery/i.ortho.photo/i.ortho.elev/testsuite/test_i_ortho_elev.py

  Log Message:
  -----------
  i.ortho.elev: add test file (#5833)

This PR adds a regression test suite for the `i.ortho.elev` module. The tests validate correct metadata assignment and persistence behavior for elevation maps associated with an imagery group during ortho-rectification workflows.

### Tests Included

- `test_set_basic_elevation`: Assigns a simple elevation map to an imagery group and verifies correct metadata using the `-p` flag. This confirms the core functionality of associating elevation data with an ortho group.
- `test_all_metadata`: Sets elevation map with additional parameters: math expression, units, and null value; then checks metadata output. It ensures optional metadata fields are parsed and stored properly, avoiding issues in downstream modules that rely on this info.
- `test_parameter_persistence`: Updates the elevation map and ensures previous metadata (like units and null value) persist across updates. This validates the robustness of metadata handling and prevents regression in real-world editing workflows.



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