Hi Tim<br><br>Not sure if this will help but when we implement from other sources (ArcSDE, Oracle etc) we setup scripts to process the data using ogr2ogr and then apply shptree etc.&nbsp; We&#39;ve found that using org2ogr is really powerful as you can create new layers based on SQL / Where statements and this could help with the classifications of the data.
<br><br>HTH<br>Mike<br><br><div><span class="gmail_quote">On 07/08/07, <b class="gmail_sendername">Gregor Mosheh</b> &lt;<a href="mailto:gregor@hostgis.com">gregor@hostgis.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;&gt;&nbsp;&nbsp;I&#39;m not really sure that I want to move<br>&gt;&gt; these separate layers into one with just class definitions because the<br>&gt;&gt; legend does display the class definitions only layers<br><br>That&#39;s not right; it should show them for every class that has a NAME
<br>element.<br><br>Looking at your code sample, I&#39;d have to agree that there are probably<br>circumstances where 5 layers using FILTER may be faster than 1 layer<br>using 5 classes, and vice versa.<br><br>If your data were in PostGIS and the filtering were happening by the
<br>same column in each case, and that column were indexed and also<br>clustered, that&#39;d probably show some excellent performance using the<br>filter (keep the filtering in the DB instead of taking it to Mapserver).<br>
<br>If your data is in shapefiles, though, the indexing by criteria isn&#39;t<br>happening and Mapserver has to do a sequential scan and class-matching<br>for every record in the spatial region represented. For each layer. Five
<br>times. Ouch.<br><br>So yeah, if you&#39;re sticking with shapefiles I&#39;d agree with the others<br>that 1 layer with 5 classes would probably be the best bet. If you&#39;re<br>willing to put in the work to put it into PostGIS, you could probably
<br>have 5 layers work very nicely.<br><br><br>&gt;&gt; I&#39;m really wondering if this is a hardware issue. The box is<br>&gt;&gt; a Sun server with 4 x 400MHz processors and 4GB ram. That might not be a<br>&gt;&gt; powerful enough machine to do what I&#39;m trying to do.
<br><br>Should be fine; that&#39;s plenty of hardware.<br><br><br>&gt; You might want to try shp2img on your mapfile as you edit it, to help<br>&gt; make sure your benchmark conditions are consistent between runs.<br>&gt; 
<a href="http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img">http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img</a><br><br>Good move, Hal. I&#39;ll take a note of this and add it to the performance
<br>docs we&#39;ve been working on.<br><br>--<br>Gregor Mosheh / Greg Allensworth<br>System Administrator, HostGIS cartographic development &amp; hosting services<br><a href="http://www.HostGIS.com/">http://www.HostGIS.com/
</a><br><br>&quot;Remember that no one cares if you can back up,<br>&nbsp;&nbsp;only if you can restore.&quot; - AMANDA<br></blockquote></div><br>