<div dir="ltr">My apologies to those on the GDAL list as well as here I posted ther a couple of days ago but did not get any replies.<div><br></div><div>We have tile sets created by gdal2tiles.py as well as from other tools.  We need to display the tiles i web using frameworks such as such as cesium or worldwindjs.  We are using the latest mapserver from ms4w on windows 10.  iI we use seed_cache we get a tileset quite different from that of gdal2tiles.  we configured the mapcache.xml file for those datasets and they appear to work ok in QGIS.  Using the same configuration style for the slippy map tiles lets them show in a get capabilities but not in QGIS nor a simple one tile query.</div><div><br></div><div>the mapcache,xml entries are basicallt as follows</div><div><br></div><div>   <cache name="tileset_a_cache" type="disk"><br>     <base>C:/data_static/MapTiles</base><br>  </cache><br></div><div><br></div><div>  <source name="tileset_a_src" type="wms"><br>  <getmap><br>    <params><br>      <FORMAT>image/png</FORMAT><br>      <LAYERS>TileSetA</LAYERS><br>      <MAP>/data/config/map/nasaww.map</MAP><br>    </params><br>  </getmap><br>  <http><br>    <url><a href="http://localhost/cgi-bin/mapserv.exe">http://localhost/cgi-bin/mapserv.exe</a>?</url><br>  </http><br></source><br><br> <tileset name="

tileset_a  "><br>            <source>

tileset_a  _src</source><br>        <cache>

tileset_a  _cache</cache><br>        <grid>GoogleMapsCompatible</grid><br>        <grid>g</grid><br>        <format>PNG</format><br>        <metatile>8 8</metatile><br>    </tileset><br></div><div><br></div><div><br></div><div>If I query wmts capabilities the dataset show in the list</div><div><br></div><div><a href="http://localhost/mapcache/wmts?service=wmts&request=getcapabilities&version=1.0.0">http://localhost/mapcache/wmts?service=wmts&request=getcapabilities&version=1.0.0</a><br></div><div><br></div><div><div class="gmail-line" style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><span class="gmail-html-tag"><Layer></span></div><div class="gmail-opened" style="margin-left:1em;color:rgb(0,0,0);font-family:monospace;font-size:13px"><div class="gmail-line"><span class="gmail-html-tag"><ows:Title></span>tileset_a<span class="gmail-html-tag"></ows:Title></span></div><div class="gmail-line"><span class="gmail-html-tag"><ows:Identifier></span><span class="gmail-html-tag">

tileset_a  </ows:Identifier></span></div><div class="gmail-folder" id="gmail-folder59"><div class="gmail-line"><span class="gmail-folder-button gmail-fold" style="display:inline-block;width:10px;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:initial;vertical-align:bottom;height:10px"></span><span class="gmail-html-tag"><Style<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">isDefault</span>="<span class="gmail-html-attribute-value">true</span>"</span>></span></div><div class="gmail-opened" style="margin-left:1em"><div class="gmail-line"><span class="gmail-html-tag"><ows:Identifier></span>default<span class="gmail-html-tag"></ows:Identifier></span></div></div><div class="gmail-line"><span class="gmail-html-tag"></Style></span></div></div><div class="gmail-line"><span class="gmail-html-tag"><Format></span>image/png<span class="gmail-html-tag"></Format></span></div><div class="gmail-folder" id="gmail-folder60"><div class="gmail-line"><span class="gmail-folder-button gmail-fold" style="display:inline-block;width:10px;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:initial;vertical-align:bottom;height:10px"></span><span class="gmail-html-tag"><TileMatrixSetLink></span></div><div class="gmail-opened" style="margin-left:1em"><div class="gmail-line"><span class="gmail-html-tag"><TileMatrixSet></span>GoogleMapsCompatible<span class="gmail-html-tag"></TileMatrixSet></span></div></div><div class="gmail-line"><span class="gmail-html-tag"></TileMatrixSetLink></span></div></div><div class="gmail-folder" id="gmail-folder61"><div class="gmail-line"><span class="gmail-folder-button gmail-fold" style="display:inline-block;width:10px;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:initial;vertical-align:bottom;height:10px"></span><span class="gmail-html-tag"><TileMatrixSetLink></span></div><div class="gmail-opened" style="margin-left:1em"><div class="gmail-line"><span class="gmail-html-tag"><TileMatrixSet></span>g<span class="gmail-html-tag"></TileMatrixSet></span></div></div><div class="gmail-line"><span class="gmail-html-tag"></TileMatrixSetLink></span></div></div><div class="gmail-line"><span class="gmail-html-tag"><ResourceURL<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">format</span>="<span class="gmail-html-attribute-value">image/png</span>"</span><span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">resourceType</span>="<span class="gmail-html-attribute-value">tile</span>"</span><span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">template</span>="<span class="gmail-html-attribute-value"><a href="http://localhost/mapcache/wmts/1.0.0/tileset_a/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png">http://localhost/mapcache/wmts/1.0.0/tileset_a/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png</a></span>"</span>/></span></div></div><div class="gmail-line" style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><span class="gmail-html-tag"></Layer></span></div></div><div class="gmail-line" style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><span class="gmail-html-tag"><br></span></div><div>if I add a wmts layer using the following in QGIS the layer shows in the list </div><div><a href="http://localhost/mapcache/wmts?service=wmts&request=getcapabilities&version=1.0.0">http://localhost/mapcache/wmts?service=wmts&request=getcapabilities&version=1.0.0</a><br></div><div><br></div><div>no tiles are displayed and the server error log has several entries of</div><div><div>WMS server error. Invalid layer(s) given in the LAYERS parameter.</div></div><div><br></div><div>if I try to add the tiles as andXYZ layer using the following no tiles are displayed</div><div><br></div><div><a href="http://localhost/mapcache/tms/1.0.0/tileset_a/{x}/{y}/{z}.png">http://localhost/mapcache/tms/1.0.0/tileset_a/{x}/{y}/{z}.png</a><br></div><div>but no errors are added to the error log</div><div><br></div><div>When some of the other application generate the slippy maps we do not have the source images so we cannot add that to the map file<br></div><div><br></div><div>What is the proper way to use the tiles generated by gdal2tiles.py with mapserver?</div><div><br></div><div>Bruce</div><div><br></div><div><br></div></div>