Hi List,<br><br>Thanks a lot it works...<br><br><div class="gmail_quote">On Wed, Oct 20, 2010 at 5:50 PM, Fawcett, David (MPCA) <span dir="ltr">&lt;<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</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;">You could try putting an ORDER BY in your PostGIS layer definition to order it by area descending.<br>

<br>
David.<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of Ibrahim Saricicek<br>

Sent: Wednesday, October 20, 2010 9:47 AM<br>
To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
Subject: [mapserver-users] The order of Classes in A Layer<br>
<br>
<br>
Hi List,<br>
<br>
I have several polygons in a postgis table. Some bigger polygons cover the<br>
smaller ones.<br>
How can I prevent bigger polygons drawn on smaller ones? On this case<br>
smaller ones cant be seen only labels are drawn.<br>
<br>
I don&#39;t know the problem is about drawing order but I think so.<br>
As you can see on the screenshots, the small polygons can be seen but when I<br>
zoom in some of them can&#39;t be drawn.<br>
The images are purple because a bigger one covers all...<br>
<br>
Thanks in advance..<br>
<br>
<a href="http://osgeo-org.1803224.n2.nabble.com/file/n5655194/zoomOut.png" target="_blank">http://osgeo-org.1803224.n2.nabble.com/file/n5655194/zoomOut.png</a><br>
<a href="http://osgeo-org.1803224.n2.nabble.com/file/n5655194/zoomIn.png" target="_blank">http://osgeo-org.1803224.n2.nabble.com/file/n5655194/zoomIn.png</a><br>
<br>
And this is my class definition;<br>
The bigger and smaller objects are in different visibility ranges and<br>
different classes!!!<br>
<br>
  CLASS<br>
                        EXPRESSION (&#39;[visibility_range]&#39; = &#39;1000-5000&#39;)<br>
                        MAXSCALEDENOM 5000<br>
                        MINSCALEDENOM 1000<br>
                        NAME &quot;GID_S&quot;<br>
                        STYLE<br>
                                COLOR [color]<br>
                        END<br>
                        STYLE<br>
                                OUTLINECOLOR 20 20 20<br>
                                WIDTH 3<br>
                        END<br>
                        LABEL<br>
                                COLOR 0 0 0<br>
                                FONT arial<br>
                                TYPE truetype<br>
                                SIZE 8<br>
                                POSITION LC<br>
                                PARTIALS FALSE<br>
                                BUFFER 5<br>
                                OUTLINECOLOR 255 255 255<br>
                        END<br>
                END<br>
<font color="#888888">--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/The-order-of-Classes-in-A-Layer-tp5655194p5655194.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/The-order-of-Classes-in-A-Layer-tp5655194p5655194.html</a><br>

Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
<br>
</font></blockquote></div><br>