One other tip is that in the case where everything is to be classified you can 
leave the expression off the last class and it becomes a default. Saves a 
little processing.

Steve

From: [email protected] 
[mailto:[email protected]] On Behalf Of Chris Jackson
Sent: Friday, September 03, 2010 6:05 AM
To: thomas bonfort
Cc: Rahkonen Jukka; [email protected]
Subject: Re: [mapserver-users] Display performance

Ok Folks

I am now ready to go home and have a sit down!!
I have re-classified the layer with a new class column and then ordered the 
shapefile by the most common classes.....

the results are in......

<3.5 secs for the entire layer to draw!! (only a saving of 21secs +) - the main 
saving was by just reclassifying.

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)

Chris
On 3 September 2010 11:07, thomas bonfort 
<[email protected]<mailto:[email protected]>> wrote:
That would be the fastest yes. Even more so if you order the classes
inside your layer by order of occurences, i.e. the most common classes
first, and the least common ones last.

--
thomas

On Fri, Sep 3, 2010 at 11:54, Chris Jackson 
<[email protected]<mailto:[email protected]>> wrote:
> Jukka
>
> Thank you for the code I will give it a go.  I guess I will dust off the
> field calculator in ArcMap and see if that improves things somewhat, I guess
> that is a similar overhead when classifying a raster by pixel value (not
> sure how to fix that).  So if I understand you right then I would just use a
> number per class (1-15 say) in the new attribute field and then code
> something like:
>
>  CLASSITEM "MEAN_SP_PC"
>   CLASS
>     EXPRESSION "1"
>     NAME "> 4.00 (m/s)"
>     STYLE
>       COLOR 135 99 64
>     END
>   END
>
> Thanks again for the insight.
> Chris
>
>
> _______________________________________________
> mapserver-users mailing list
> [email protected]<mailto:[email protected]>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to