[MapServer-users] Fwd: WMS with a GPKG-based layer : different responses, dependending on version (1.1.1 vs 1.3.0)

Philippe Ghesquiere philippe.ghesquiere at airbus.com
Thu Feb 19 09:04:22 PST 2026


Hi Jukka,

Our GPKG (osm_4326.gpkg) contains OSM tiles, with an InspireCRS84Quad
<https://gdal--13880.org.readthedocs.build/en/13880/drivers/raster/gpkg.html#tiling-schemes>
tiling scheme. The pyramid goes from Z=0 down to Z=13.
In the Mapfile, the layer's DATA is coming from the MapCache WMTS layer
(i.e. the GPKG file).

Mapfile excerpt :
LAYER
   NAME "osm_4326"
   METADATA
     "wms_title" "OpenStreet Map WMS"
   END
   TYPE RASTER
   DATA "baselayers_gdal_osm.xml"
   PROJECTION
      "init=epsg:4326"
   END
END

baselayers_gdal_osm.xml content:
<GDAL_WMTS>
   <GetCapabilitiesUrl>
http://localhost/mapcache/wmts?request=GetCapabilities&SERVICE=WMTS
</GetCapabilitiesUrl>
   <Layer>osm_4326</Layer>
   <Style>default</Style>
   <TileMatrixSet>WGS84</TileMatrixSet>
   <DataWindow>
      <UpperLeftX>-180.0</UpperLeftX>
      <UpperLeftY>90.0</UpperLeftY>
      <LowerRightX>180.0</LowerRightX>
      <LowerRightY>-90.0</LowerRightY>
   </DataWindow>
   <BandsCount>4</BandsCount>
   <Cache/>
   <UnsafeSSL>true</UnsafeSSL>
   <ZeroBlockHttpCodes>204,404</ZeroBlockHttpCodes>
   <ZeroBlockOnServerException>true</ZeroBlockOnServerException>
</GDAL_WMTS>

WMTS cache definition:
<cache name="osm_cache_4326" type="sqlite3">
    <dbfile>/xxx/osm_4326.gpkg</dbfile>
    <queries>
       <get>select tile_data from tiles where tile_column=:x and
tile_row=:inv_y and zoom_level=:z</get>
    </queries>
</cache>
<tileset name="osm_4326">
    <cache>osm_cache_4326</cache>
    <grid restricted_extent="-180.0,-90.0,180.0,90.0">WGS84</grid>
    <format>PNG</format>
    <metadata>
       <title>OSM (Fond de carte) WGS84</title>
    </metadata>
</tileset>


Philippe
The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20260219/b1777ea9/attachment-0001.htm>


More information about the MapServer-users mailing list