Current QGIS .MAP export plugin (RT MapServer Exporter) was difficult to install on Windows 64 bit and yet, the resulting MAP file does not suit my needs.
The solution for me is to:
1) Downloaded tiles using the tool in the Basemap.AT page. Ensure you enable the checkbox in order to generate the
.pgw files, which define the geographical location of each
2) From the downloaded tiles, for each zoom level (in directories named '1', '2', '3'...), created a "tileindex" shape file (
.shp) that indexes the tiles for that level. This is done using the
gdaltindex 1.shp `find 1 -name '*.png'`
gdaltindex 2.shp `find 2 -name '*.png'`
3) Mapserver can use these shape files to serve a map. I manually constructed the map file. You need to define several levels and play with the
MINSCALEDENOM on each level to show the appropriate tileset at the correct scale (I defined scale levels by looking at the original tileset metadata).
The resulting MapServer configuration file (.MAP) contains layers that look like:
LAYER # Main
END # Main
WMS_TITLE "City Area Basemap Level 5"
WMS_TITLE "City Area Basemap Level 6"