<div dir="ltr"><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Hi Jukka,</div><div dir="ltr"><div><br></div><div>Our GPKG (osm_4326.gpkg) contains OSM tiles, with an <a href="https://gdal--13880.org.readthedocs.build/en/13880/drivers/raster/gpkg.html#tiling-schemes" target="_blank">InspireCRS84Quad</a> tiling scheme. The pyramid goes from Z=0 down to Z=13.</div><div>In the Mapfile, the layer's DATA is coming from the MapCache WMTS layer (i.e. the GPKG file).</div><div><br></div><div>Mapfile excerpt :</div><div>LAYER<br>   NAME "osm_4326"<br>   METADATA<br>     "wms_title" "OpenStreet Map WMS"<br>   END<br>   TYPE RASTER<br>   DATA "baselayers_gdal_osm.xml"<br>   PROJECTION<br>      "init=epsg:4326"<br>   END<br>END<br></div><div><br></div><div>baselayers_gdal_osm.xml content:</div><div><GDAL_WMTS><br>   <GetCapabilitiesUrl><a href="http://localhost/mapcache/wmts?request=GetCapabilities&amp;SERVICE=WMTS" target="_blank">http://localhost/mapcache/wmts?request=GetCapabilities&amp;SERVICE=WMTS</a></GetCapabilitiesUrl><br>   <Layer>osm_4326</Layer><br>   <Style>default</Style><br>   <TileMatrixSet>WGS84</TileMatrixSet><br>   <DataWindow><br>      <UpperLeftX>-180.0</UpperLeftX><br>      <UpperLeftY>90.0</UpperLeftY><br>      <LowerRightX>180.0</LowerRightX><br>      <LowerRightY>-90.0</LowerRightY><br>   </DataWindow><br>   <BandsCount>4</BandsCount><br>   <Cache/><br>   <UnsafeSSL>true</UnsafeSSL><br>   <ZeroBlockHttpCodes>204,404</ZeroBlockHttpCodes><br>   <ZeroBlockOnServerException>true</ZeroBlockOnServerException><br></GDAL_WMTS><br></div><div><br></div><div>WMTS cache definition:</div><div><cache name="osm_cache_4326" type="sqlite3"><br>    <dbfile>/xxx/osm_4326.gpkg</dbfile><br>    <queries><br>       <get>select tile_data from tiles where tile_column=:x and tile_row=:inv_y and zoom_level=:z</get><br>    </queries><br></cache><br><tileset name="osm_4326"><br>    <cache>osm_cache_4326</cache><br>    <grid restricted_extent="-180.0,-90.0,180.0,90.0">WGS84</grid><br>    <format>PNG</format><br>    <metadata><br>       <title>OSM (Fond de carte) WGS84</title><br>    </metadata><br></tileset><br></div><div><br></div><div><br></div><div>Philippe</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br></div></div>
</div></div>
<font style="font-size: 9px;">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.<br>If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.<br>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.<br>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.</font>