[GRASS-git] [OSGeo/grass] c77cf2: v.proj: Seed region from default window to ignore ...
Anna Petrasova
noreply at github.com
Fri Jul 17 02:02:15 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: c77cf203fb82ce4871590e7b07bacaa3b268ff5e
https://github.com/OSGeo/grass/commit/c77cf203fb82ce4871590e7b07bacaa3b268ff5e
Author: Anna Petrasova <kratochanna at gmail.com>
Date: 2026-07-17 (Fri, 17 Jul 2026)
Changed paths:
M vector/v.proj/main.c
A vector/v.proj/tests/v_proj_wind_override_test.py
Log Message:
-----------
v.proj: Seed region from default window to ignore region override (#7578)
When v.proj switches into the source project to read the input vector, it seeded its working region with G_get_window(), which honors WIND_OVERRIDE and GRASS_REGION. WIND_OVERRIDE names a region in the caller's mapset, not in the source project, so the read failed with "Unable to open element file" whenever v.proj ran under a named temporary region (e.g. inside RegionManager, use_temp_region(), or parallel pipelines). Using GRASS_REGION would also be wrong.
Read the source project's default window instead. The seed value is overwritten field by field from the input vector's extent immediately afterward, so seeding from the default window is sufficient and does not consult the override. G_unset_window() is dropped since it only existed to defeat G_get_window()'s cache.
Adds a regression test that runs v.proj with WIND_OVERRIDE naming a region present only in the target mapset.
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