[mapserver-users] The order of Classes in A Layer

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Wed Oct 20 07:50:42 PDT 2010


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

David.

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek
Sent: Wednesday, October 20, 2010 9:47 AM
To: mapserver-users at 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 at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users





More information about the MapServer-users mailing list