Ok Folks<br><br>I am now ready to go home and have a sit down!!<br>I have re-classified the layer with a new class column and then ordered the shapefile by the most common classes..... <br><br>the results are in......<br><br>
&lt;3.5 secs for the entire layer to draw!! (only a saving of 21secs +) - the main saving was by just reclassifying.<br><br>Thanks to all as this has been a great learning experience, I am now going to see if I can find a bigger model grid to play with.....!   ;o)<br>
<br>Chris<br><br><div class="gmail_quote">On 3 September 2010 11:07, thomas bonfort <span dir="ltr">&lt;<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
That would be the fastest yes. Even more so if you order the classes<br>
inside your layer by order of occurences, i.e. the most common classes<br>
first, and the least common ones last.<br>
<br>
--<br>
thomas<br>
<div><div></div><div class="h5"><br>
On Fri, Sep 3, 2010 at 11:54, Chris Jackson &lt;<a href="mailto:webturtles@gmail.com">webturtles@gmail.com</a>&gt; wrote:<br>
&gt; Jukka<br>
&gt;<br>
&gt; Thank you for the code I will give it a go.  I guess I will dust off the<br>
&gt; field calculator in ArcMap and see if that improves things somewhat, I guess<br>
&gt; that is a similar overhead when classifying a raster by pixel value (not<br>
&gt; sure how to fix that).  So if I understand you right then I would just use a<br>
&gt; number per class (1-15 say) in the new attribute field and then code<br>
&gt; something like:<br>
&gt;<br>
&gt;  CLASSITEM &quot;MEAN_SP_PC&quot;<br>
&gt;   CLASS<br>
&gt;     EXPRESSION &quot;1&quot;<br>
&gt;     NAME &quot;&gt; 4.00 (m/s)&quot;<br>
&gt;     STYLE<br>
&gt;       COLOR 135 99 64<br>
&gt;     END<br>
&gt;   END<br>
&gt;<br>
&gt; Thanks again for the insight.<br>
&gt; Chris<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
<div class="im">&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
</div><div><div></div><div class="h5">&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>