[mapserver-users] Display performance

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Fri Sep 3 13:10:44 EDT 2010


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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Jackson
Sent: Friday, September 03, 2010 6:05 AM
To: thomas bonfort
Cc: Rahkonen Jukka; mapserver-users at lists.osgeo.org
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 <thomas.bonfort at gmail.com<mailto:thomas.bonfort at gmail.com>> 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 <webturtles at gmail.com<mailto:webturtles at gmail.com>> 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
> mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100903/e90f8df8/attachment.html


More information about the mapserver-users mailing list