Skip to content

COG optimizations#250

Merged
m-mohr merged 2 commits into
mainfrom
cog-optimization
Apr 15, 2026
Merged

COG optimizations#250
m-mohr merged 2 commits into
mainfrom
cog-optimization

Conversation

@m-mohr
Copy link
Copy Markdown
Collaborator

@m-mohr m-mohr commented Apr 15, 2026

  • Optimize COG loading in the App itself
  • Optimize the COGs itself:
    • More overviews
    • Better compression
    • Reprojected to EPSG 3857 (projection of the map)
    • Resampled to uint8 (accuracy: 0.5%, which should be enough for filtering and visualization)

Reduced loading time of the whole initial view from 15-20 secs to ~3 secs and much less CPU/network usage.

@m-mohr m-mohr added this to the 1.1 - Global Data milestone Apr 15, 2026
Comment on lines +48 to +50
sourceOptions: {
blockSize: 512 * 1024, // 512KB: capture all IFDs in 1-2 requests instead of 100+
},
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This works around a temporary ol/geotiff issue - with ol@10.9 and geotiff@3.1.0-beta.0, you don't need it. But it also does not hurt keeping it.

@m-mohr m-mohr merged commit 6662a23 into main Apr 15, 2026
1 check passed
@m-mohr m-mohr deleted the cog-optimization branch April 15, 2026 20:04
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.

2 participants