[mapserver-users] multiple map layers with different scales

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Wed Jul 14 10:34:26 EDT 2010


Create a layer for each data set.  

Use Layer MAXSCALEDENOM and MINSCALEDENOM to define when the layer should be drawn.  http://mapserver.org/mapfile/layer.html

David.

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of easyl
Sent: Wednesday, July 14, 2010 6:44 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] multiple map layers with different scales


I have multiple map layers with different scales.
 
For example,
+---------------------------------------------+
|  A    +-----------------------------+          |
|        | B                             +----------+ | 
|        |                                | C           |  |
|        |                                +----------+ |
|        |                                      |           |
|        +----------------------------+           |
+---------------------------------------------+

A   1:1000 
B   1:500
C   1:100

How can I setup them in mapserver, so that I can render the map with
different detail.

For example:

given a scale value from 1:100
The map is rendered with:
+---------------------------------------------+
|  A    +-----------------------------+          |
|        | B                             +----------+ | 
|        |                                | C           |  |
|        |                                +----------+ |
|        |                                      |           |
|        +----------------------------+           |
+---------------------------------------------+


given a scale value from 1:200
The map is rendered with:
+---------------------------------------------+
|  A    +-----------------------------+          |
|        | B                                   |           | 
|        |                                      |           |
|        |                                      |           |
|        |                                      |           |
|        +----------------------------+           |
+---------------------------------------------+

given a scale value from 1:700
The map is rendered with:
+---------------------------------------------+
|  A                                                       |
|                                                           | 
|                                                           |
|                                                           |
|                                                           |
|                                                           |
+---------------------------------------------+
 
Is that possible?
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-map-layers-with-different-scales-tp5292120p5292120.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