Skip to content

Commit

Permalink
Add OverviewList element to VRT
Browse files Browse the repository at this point in the history
  • Loading branch information
olsen232 committed Dec 11, 2023
1 parent 757237b commit 478efda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kart/raster/mosaic_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ def write_vrt_for_directory(directory_path):
del vrt

vrt_text = vrt_path.read_text()
vrt_text = vrt_text.replace(
"</VRTDataset>",
' <OverviewList resampling="average">2 4 8</OverviewList>\n</VRTDataset>',
)

vrt_path.write_text(KART_VRT_HEADING + vrt_text)

0 comments on commit 478efda

Please sign in to comment.