Skip to content

Simplify the bounds of reprojection VRT - #205

Merged
neilflood merged 1 commit into
ubarsc:masterfrom
neilflood:simple-vrt-bounds
Aug 3, 2026
Merged

Simplify the bounds of reprojection VRT#205
neilflood merged 1 commit into
ubarsc:masterfrom
neilflood:simple-vrt-bounds

Conversation

@neilflood

Copy link
Copy Markdown
Member

The current code for calculating the bounds of a reprojection VRT attempts to restrict the VRT against the extent of the underlying file in its own coordinate system. This turns out to create problems when the underlying projection is well outside the safe use area of the working projection.

To avoid these problems, just use the simpler option of making the VRT extent always identical to the working grid extent. I had earlier thought there was a performance benefit to the more complicated approach, but it appears not. This is probably because GDAL's VRT code is much cleverer than I am.

As discussed in #204

@neilflood
neilflood merged commit d4925b3 into ubarsc:master Aug 3, 2026
6 checks passed
@neilflood
neilflood deleted the simple-vrt-bounds branch August 3, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant