<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Bruce,<br></div><div><br></div><div>If you already have the tiles in an XYZ file structure you can simply put them in a folder on the web server (Apache, IIS etc.) and OpenLayer can access them as in the example at <a href="https://openlayers.org/en/latest/examples/xyz.html">https://openlayers.org/en/latest/examples/xyz.html</a><br></div><div>OpenLayers just fills in the correcy xyz parameters based on map location e.g. <a href="https://c.tile.thunderforest.com/cycle/13/3997/2556.png">https://c.tile.thunderforest.com/cycle/13/3997/2556.png</a><br></div><div><br></div><div>The approach using <a href="http://localhost/cgi-bin/mapserv.exe?map=/data/config/map/nasaww.map&MODE=tile&TILEMODE=gmap&LAYERS=bluemarble/%7Bz%7D/%7Bx%7D/%7By%7D.png" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=/data/config/map/nasaww.map&MODE=tile&TILEMODE=gmap&LAYERS=bluemarble/{z}/{x}/{y}.png</a> can be used to generate new tiles from datasets using MapServer as long as projections etc. are set correctly.<br></div><div><br></div><div>Seth<br></div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:http://geographika.co.uk<br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div><br></div><div>On Wed, Nov 10, 2021, at 9:21 PM, Bruce Clay wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div>Richard:<br></div><div>  Thanks for your reply.  We have several datasets that I think follow the slippy map directory structure.  We want them on a server  accessible to remote thin clients.  We have WMTS datasets running on mapserver but that uses a different directory structure and those are accessible through a TMS or WMTS mapcaches query.  <br></div><div><br></div><div>How does the remote thin client access the files from a folder C:\data_static\MapTiles\BlueMarbleTiles where the tms.xml file lives.  Some of the tilesets we generated with gdal2tiles.py and they have a tilemapresource.xml file instead.  Those files have an openlayers.html file in the base of the tileset that will display the teils when clicked on but again that is from the local system.<br></div><div><br></div><div><br></div><div>Bruce<br></div><div><br></div></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Wed, Nov 10, 2021 at 12:44 PM Richard Greenwood <<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div dir="ltr">I'm not sure what you're trying to do so apologizes if I'm stating the obvious, but MapServer is a rendering engine that takes raw data (vector and/or raster) and returns a rasterized representation of that data based on the request. That may be a single image or multiple tiles depending on the request. If you already have tiles then you don't need MapServer. Your client (QGIS, OpenLayers, etc.) can fetch those tiles directly. Neither of the query strings that you've pasted into the email look valid to me so I'm not surprised that you're not getting any results.<br></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Wed, Nov 10, 2021 at 7:05 AM Bruce Clay <<a href="mailto:bclay1297@gmail.com" target="_blank">bclay1297@gmail.com</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div dir="ltr"><div>Can mapserver serve xyz (mapbox or others) type tiles?<br></div><div><br></div><div>If I try to add a xyz layer in qgis using <a href="http://localhost/cgi-bin/mapserv.exe?map=/data/config/map/nasaww.map&MODE=tile&TILEMODE=gmap&LAYERS=bluemarble/%7Bz%7D/%7Bx%7D/%7By%7D.png" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=/data/config/map/nasaww.map&MODE=tile&TILEMODE=gmap&LAYERS=bluemarble/{z}/{x}/{y}.png</a> I always get a black set of tiles<br></div><div><br></div><div>if i query <a href="http://localhost/cgi-bin/mapserv.exe?map=/data/config/map/nasaww.map&MODE=tile&TILEMODE=gmap&TILE=0+0+0&LAYERS=bluemarble" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=/data/config/map/nasaww.map&MODE=tile&TILEMODE=gmap&TILE=0+0+0&LAYERS=bluemarble</a> I get a black tile<br></div><div><br></div><div>if I change the layer name to a non-existent layer I still get a black tile and no errors are reported in the mapserver log file.<br></div><div><br></div><div>if I click on the openlayers.html file in the root directory of the tileset it displays valid images.<br></div><div><br></div><div>Online documentation refers to a tile mode but does not explain how to configure the map file to support xyz.  <br></div><div><br></div><div>Bruce<br></div></div><div>_______________________________________________<br></div><div> MapServer-dev mailing list<br></div><div> <a href="mailto:MapServer-dev@lists.osgeo.org" target="_blank">MapServer-dev@lists.osgeo.org</a><br></div><div> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br></div></blockquote></div><div><br></div><div><br></div><div>-- <br></div><div dir="ltr"><div dir="ltr"><div>Richard W. Greenwood<br></div><div><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a><br></div></div></div></blockquote></div><div>_______________________________________________<br></div><div>MapServer-dev mailing list<br></div><div><a href="mailto:MapServer-dev@lists.osgeo.org">MapServer-dev@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br></div><div><br></div></blockquote><div><br></div></body></html>