<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Tahoma">Hello list,<br>
<br>
this is my first email to this list. I am working with MapServer,
OpenLayers &amp; TileCache for almost 1 year now and the tools are
really working great together, when everything is configured correctly
;-)<br>
<br>
At the moment I&acute;m facing a performance problem with raster data that
serves as input data to render my map tiles. The spatial resolution of
this raster data is 720 (rows) x 360 (cols) and it is stored in a
simple .txt file (The size of the file is around 2 MB). </font><font
 face="Tahoma">I use TileCache to prerender maptiles for different zoom
levels that are later displayed in a web application using OpenLayers.<br>
<br>
</font><font face="Tahoma">I discovered, that the rendering speed of
MapServer seems to mainly depend on how many different classes I define
within my mapfile, meaning how many expressions MapServer has to
evaluate during the rendering process. Without any classes MapServer
the rendering speed is really fast, the more classes I use the slower
it gets. With e.g. 10 different classes defining 10 different styles /
pixel colors the rendering time for one tile can increase up to 60 sec.<br>
<br>
</font>
<pre wrap="">CLASS<span class="moz-txt-citetags">
  </span>EXPRESSION ([pixel] &gt;= -4 AND [pixel] &lt; -3)<span
 class="moz-txt-citetags">
    </span>STYLE
<span class="moz-txt-citetags"></span>        COLOR 69 117 180
<span class="moz-txt-citetags"></span>   END
<span class="moz-txt-citetags"></span>END
</pre>
<br>
<font face="Tahoma">While working with shape files I haven&acute;t had this
problems and prerendering map tiles was really fast. With raster data
the rendering time for one map and 5 different zoom levels can take up
to several hours and almost overburdens my CPU.<br>
<br>
Can anybody give me a hint how I could improve this?<br>
<br>
Best, Tobi<br>
</font>
</body>
</html>