[Geoserver-users] bug in gs:mbtiles plugin ?

Hi all,

I’m using GeoServer to create mbtiles files of some of my maps.
I want to create an mbtiles file of a layer group composed of multiple layers.

Using the wms/getMap service with the format mbtiles / application/x-sqlite3 the file is created correctly.

Instead, using the gs:mbtiles plugin via WPS to create an mbtiles file of the same layerGroup, the system returns an error of the following type reporting that the layer is not found.


<wps:ExecuteResponse xml:lang=“en” service=“WPS” serviceInstance=“https://historicalkat.provincia.tn.it/geoserver/ows?” version=“1.0.0” xmlns:xs=“http://www.w3.org/2001/XMLSchema” xmlns:ows=“http://www.opengis.net/ows/1.1” xmlns:wps=“http://www.opengis.net/wps/1.0.0” xmlns:xlink=“http://www.w3.org/1999/xlink”>

<wps:Process wps:processVersion=“1.0.0”>

ows:Identifier
gs:MBTiles
</ows:Identifier>
ows:Title
MBTiles
</ows:Title>
ows:Abstract
MBTiles Process
</ows:Abstract>

</wps:Process>
<wps:Status creationTime=“2024-02-09T12:13:32.609Z”>

wps:ProcessFailed

<ows:ExceptionReport version=“1.1.0”>

<ows:Exception exceptionCode=“NoApplicableCode”>

ows:ExceptionText
Process failed during executionorg.geoserver.platform.ServiceException: Layer not found: catasto:test1Layer not found: catasto:test1
</ows:ExceptionText>

</ows:Exception>

</ows:ExceptionReport>

</wps:ProcessFailed>

</wps:Status>

</wps:ExecuteResponse>
——

It is possible that there is a bug in the class:

  • geoserver/src/community/mbtiles/src/main/java/org/geoserver/mbtiles/gs/wps/MBTilesProcess.java

who considers searching only layers and not layer groups?

How can it be solved?

Thanks

Stefano

I have not used mbtiles recently, but I often use geoserver to create vector tiles for layer groups (that is kind of the point for vector tiles).

Could you try reproducing the problem with the sample data directory, and submit a bug report that can be reproduced.

···


Jody Garnett