Skip to content

lib/raster: read vrt tile only if needed - #7334

Merged
metzm merged 6 commits into
OSGeo:mainfrom
metzm:vrt_read_row
May 13, 2026
Merged

metzm merged 6 commits into
OSGeo:mainfrom
metzm:vrt_read_row

Conversation

@metzm

@metzm metzm commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

If there is a large GRASS vrt raster with many tiles and only a small region needs to be read, vrt tiles outside the current reading region should be ignored. This reduces disk IO and avoids unnecessary opening and closing of many files.

@metzm metzm added this to the 8.6.0 milestone Apr 19, 2026
@metzm metzm added enhancement New feature or request raster Related to raster data processing C Related code is in C libraries labels Apr 19, 2026
@metzm
metzm requested a review from nilason May 7, 2026 12:58

@nilason nilason left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@metzm
metzm merged commit 813e1e5 into OSGeo:main May 13, 2026
26 checks passed
@metzm
metzm deleted the vrt_read_row branch May 13, 2026 17:25
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Jul 7, 2026
* read vrt tile only if needed
* remove unneeded pointer assignement
* avoid switch - case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C Related code is in C enhancement New feature or request libraries raster Related to raster data processing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants