<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19088">
</head>
<body>
<div><font size="2" face="Arial"><span class="379413108-06092011">Hi,</span></font></div>
<div><font size="2" face="Arial"><span class="379413108-06092011"></span></font>&nbsp;</div>
<div><font size="2" face="Arial"><span class="379413108-06092011">The mapfile document
<a href="http://mapserver.org/mapfile/layer.html">http://mapserver.org/mapfile/layer.html</a>&nbsp;is a little bit unclear about raster tileindex. It made me believe that shapefile tileindex is the only possibility.</span></font></div>
<div><span class="379413108-06092011"><dt><font size="2" face="Arial"></font>&nbsp; </dt><dt><font size="2" face="Arial">&quot;</font><a class="reference internal" href="http://mapserver.org/optimization/tileindex.html#tileindex"><em><font size="2" face="Arial">TILEINDEX</font></em></a><font size="2" face="Arial"> [filename|layername]</font>
</dt><dt><font size="2" face="Arial">Name of the tileindex file or layer. A tileindex is similar to an ArcInfo library index. The tileindex contains polygon features for each tile. The item that contains the location of the tiled data is given using the TILEITEM
 parameter. When a file is used as the tileindex for shapefile or raster layers, the tileindex should be a shapefile. For CONNECTIONTYPE OGR layers, any OGR supported datasource can be a tileindex. Normally the location should contain the path to the tile file
 relative to the shapepath, not relative to the tileindex itself. If the DATA parameter contains a value then it is added to the end of the location. When a tileindex layer is used, it works similarly to directly referring to a file, but any supported feature
 source can be used (ie. postgres, oracle).&quot;</font></dt></div>
<div><font size="2" face="Arial"></font>&nbsp;</div>
<div><span class="379413108-06092011"><font size="2" face="Arial">However, I remembered vaguely that I had read something about storing tileindex in PostGIS (perhaps it was Armin). After reading old mails and a few trials and errors I managed to use Spatialite
 as a tileindex.&nbsp;Only after that I understood that the &quot;layername&quot; and&nbsp;&quot;timeindex layer&quot; mean the name of another layer in the mapfile. and found this document
<a href="http://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery">
http://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery</a></font></span></div>
<div><span class="379413108-06092011"><font size="2" face="Arial"></font></span>&nbsp;</div>
<div><span class="379413108-06092011"><font size="2" face="Arial">An example like this somewhere linked with the tileindex item in the documentation could save some time for others.</font></span></div>
<div><span class="379413108-06092011"><font size="2" face="Arial"></font></span>&nbsp;</div>
<div><span class="379413108-06092011"><font size="2" face="Arial">LAYER<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME &quot;MS_tileindex_layer&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE POLYGON<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTIONTYPE OGR<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTION &quot;tileindex.sqlite&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA &quot;Spatialite_tileindex_layer&quot;<br>
&nbsp;&nbsp;&nbsp; END</font></span></div>
<div><font size="2" face="Arial"></font>&nbsp;</div>
<div><span class="379413108-06092011"><font size="2" face="Arial">LAYER<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NAME &quot;raster_layer&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS ON</font></span></div>
<div><span class="379413108-06092011"><font size="2" face="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE RASTER<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TILEINDEX &quot;MS_tileindex_layer&quot;</font></span></div>
<div><span class="379413108-06092011"><font size="2" face="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...</font></span></div>
<div><span class="379413108-06092011"><font size="2" face="Arial"></font></span>&nbsp;</div>
<div><span class="379413108-06092011"><font size="2" face="Arial">Side effect with&nbsp;using the tileindex layer is that it will be included in the WMS layers but obviously there is no way to hide it.</font></span></div>
<div><span class="379413108-06092011"><font size="2" face="Arial"></font></span>&nbsp;</div>
<div><span class="379413108-06092011"><font size="2" face="Arial">-Jukka Rahkonen-</font></span></span></div>
</body>
</html>