You could try putting an ORDER BY in your PostGIS layer definition to order it 
by area descending.  

David.

-----Original Message-----
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ibrahim Saricicek
Sent: Wednesday, October 20, 2010 9:47 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] The order of Classes in A Layer


Hi List,

I have several polygons in a postgis table. Some bigger polygons cover the
smaller ones.
How can I prevent bigger polygons drawn on smaller ones? On this case
smaller ones cant be seen only labels are drawn.

I don't know the problem is about drawing order but I think so.
As you can see on the screenshots, the small polygons can be seen but when I
zoom in some of them can't be drawn.
The images are purple because a bigger one covers all...

Thanks in advance..

http://osgeo-org.1803224.n2.nabble.com/file/n5655194/zoomOut.png 
http://osgeo-org.1803224.n2.nabble.com/file/n5655194/zoomIn.png 

And this is my class definition;
The bigger and smaller objects are in different visibility ranges and
different classes!!!

  CLASS
                        EXPRESSION ('[visibility_range]' = '1000-5000')
                        MAXSCALEDENOM 5000
                        MINSCALEDENOM 1000
                        NAME "GID_S"
                        STYLE
                                COLOR [color]
                        END
                        STYLE
                                OUTLINECOLOR 20 20 20
                                WIDTH 3
                        END
                        LABEL
                                COLOR 0 0 0
                                FONT arial
                                TYPE truetype
                                SIZE 8
                                POSITION LC
                                PARTIALS FALSE
                                BUFFER 5
                                OUTLINECOLOR 255 255 255
                        END
                END
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/The-order-of-Classes-in-A-Layer-tp5655194p5655194.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to