<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am trying to add WMTS / TMS to our current WMS mapserver. I have some map tiles generated by gdal2tiles.py that appear to be valid. There is a tilemapresource.xml file in the root of each tile set.
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am not sure the correct forum to ask this question but how do I configure mapserver to serve one of these tile sets when there is not a corresponding original source to put in the mapserver configuration file? I added the mapcache.xml file as follows</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<cache name="bm_200401" type = "disk">
<div> <base>H:/ms4w/cache/BlueMarbleTiles_200401</base></div>
</cache></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<tileset name="bluemarble200401">
<div> <source>bluemarble_src</source></div>
<div> <cache>bm_200401</cache></div>
<div> <metatile>5 5</metatile></div>
<div> <format>PNG</format></div>
<div> <grid>WGS84</grid></div>
<div> </div>
<div> <metadata></div>
<div> <title>Blue Marble 200401</title></div>
<div> <abstract>Blue Marble - January 2004 - tiles</abstract></div>
<div> <keywords></div>
<div> <keyword>Blue Marble</keyword></div>
<div> <keyword>tiles</keyword></div>
<div> </keywords></div>
<div> </metadata> </div>
</tileset></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<tileset name="bluemarble200401">
<div> <source>bluemarble_src</source></div>
<div> <cache>bm_200401</cache></div>
<div> <metatile>5 5</metatile></div>
<div> <format>PNG</format></div>
<div> <grid>WGS84</grid></div>
<div> </div>
<div> <metadata></div>
<div> <title>Blue Marble 200401</title></div>
<div> <abstract>Blue Marble - January 2004 - tiles</abstract></div>
<div> <keywords></div>
<div> <keyword>Blue Marble</keyword></div>
<div> <keyword>tiles</keyword></div>
<div> </keywords></div>
<div> </metadata> </div>
</tileset></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
When I select the tile set in QGIS using <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="http://localhost/mapcache/wmts?service=wmts&request=getcapabilities&version=1.0.0" id="LPlnk259191">http://localhost/mapcache/wmts?service=wmts&request=getcapabilities&version=1.0.0</a></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
All of the layers show as available layers but the only ones that show on the map are the ones that have an entry in the WMS map file.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
>From my understanding the tilemapresource.xml file generate by gdal2tiles.py specifies the zoom levels and resolution but it is not specified in any of the configuration files.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Any suggestions would be greatly appreciated.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Bruce<br>
</div>
</body>
</html>