Ocean Layer Not Rendering at Low Zoom Levels in PMTiles (GeoServer)#47
Open
ronitjadhav wants to merge 1 commit intoshortbread-tiles:mainfrom
Open
Ocean Layer Not Rendering at Low Zoom Levels in PMTiles (GeoServer)#47ronitjadhav wants to merge 1 commit intoshortbread-tiles:mainfrom
ronitjadhav wants to merge 1 commit intoshortbread-tiles:mainfrom
Conversation
|
👍 for this update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When serving PMTiles generated by shortbread-tilemaker through GeoServer using the PMTiles extension and MBStyle, ocean polygons do not render at zoom levels 0–7.
This happens because GeoServer relies on PMTiles layer metadata to decide which layers are available at a given zoom level.
Root Cause
In
config.json:The
oceanlayer is defined with:The
ocean-lowlayer covers zooms 0–7 and writes intoocean:While tilemaker correctly merges
ocean-lowgeometries into theoceanlayer at zooms 0–7, PMTiles metadata only reflects the primary layer definition, resulting in:GeoServer (via the PMTiles extension) therefore assumes the
oceanlayer does not exist below zoom 8 and does not render it, even though the tile data contains valid ocean polygons.Solution
Update the
oceanlayer definition to match the actual data range after merging:This ensures PMTiles metadata correctly advertises ocean data at all zoom levels, allowing GeoServer + MBStyle to render it correctly.
Testing
Generated PMTiles for the Europe region
Verified metadata now reports:
Confirmed ocean renders correctly at low zoom levels in GeoServer using the PMTiles extension and MBStyle
Visual Comparison