[Geoserver-users] Mbtiles Extension - Gaps in rastered layers

Hi all,
I am having a problem with GIS data imported with the Mbtiles extension. The generated output shows some gaps in the data for low zooms (see picture attached).
image.png

The effect gets stronger when zooming out. For high zoom levels (<270k) this effect is not visible.
I did some tests with the 2.19.1 version. It only appears when the data input is mbtiles, the same data formatted as GeoPackage renders correctly. Moreover the mbtiles file is correctly rendered in QGIS. I am using OSM data.
Has Anyone experienced similar issues?
Thanks and best regards
Julian Rektar

Hi everyone,
no one experienced the same issue? I am a bit stuck and don’t know how to get rid of the gaps. Any help would be highly appreciated!

Best regards
Julian

Am Do., 27. Mai 2021 um 20:22 Uhr schrieb JR <easkieni@anonymised.com>:

Hi all,
I am having a problem with GIS data imported with the Mbtiles extension. The generated output shows some gaps in the data for low zooms (see picture attached).
image.png

The effect gets stronger when zooming out. For high zoom levels (<270k) this effect is not visible.
I did some tests with the 2.19.1 version. It only appears when the data input is mbtiles, the same data formatted as GeoPackage renders correctly. Moreover the mbtiles file is correctly rendered in QGIS. I am using OSM data.
Has Anyone experienced similar issues?
Thanks and best regards
Julian Rektar

First up, mbtiles is a community extension being shared for feedback and in the hopes of collaboration. So your feedback here is a great example of that - you may be the first person to both try this, notice a problem, and report the issue.

The codebase is here
https://github.com/geoserver/geoserver/blob/main/src/community/mbtiles/pom.xml did not show me who was working on this (no developer listed). Checking history (
https://github.com/geoserver/geoserver/commits/main/src/community/mbtiles/pom.xml
) shows thatNielsCharlier added this module in 2014.

If you are interested in the functionality perhaps contact Niels, based on the amount of changes and participation this module does not look very active in the geoserver code base, but it makes use of an implementation in geotools (for the data format) which may be more active.

This code
https://github.com/geoserver/geoserver/blob/main/src/community/mbtiles/src/main/java/org/geoserver/mbtiles/MBTilesGetMapOutputFormat.java#L109-L113

public void addTile(int zoom, int x, int y, byte data) throws IOException {
MBTilesTile tile = new MBTilesTile(zoom, x, y);
tile.setData(data);
mbTiles.saveTile(tile);
}

Looks to be responsible for adding a tile of content, so I would start there.

Jody

image.png

···


Jody Garnett