[mapserver-users] MINSCALEDENOM, MAXSCALEDENOM help/tutorial?
Fawcett, David
David.Fawcett at state.mn.us
Mon Aug 31 13:27:33 PDT 2009
Chris,
I always suggest just testing your map file using mode=map call to cgi
mapserver.
MAXSCALEDENOM 50000 should do it.
David.
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris
Kantarjiev
Sent: Monday, August 31, 2009 3:17 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] MINSCALEDENOM, MAXSCALEDENOM help/tutorial?
I've got a large map that, for various reasons, wants to have all the
layers on by default. Since
it's all the streets in the US, some of them highlighted by size, it
takes a long time to draw - in
fact, mapserver often takes too long to respond, such that apache times
out.
I'm trying to use the MIN/MAXSCALEDENOM to control display. The examples
are not immediately
helpful, since they only use a single value, and don't leave me with a
sense of how "min" or "max"
applies.
For example - which of these is correct if I want the layer to only
appear when the map scale is
lower than 1:50000 (that is, between 1:1 and 1:50000, or rather, with
very small features shown)?
LAYER
NAME "controlled-access-fc5"
TYPE LINE
STATUS DEFAULT
TILEINDEX /maps/NAVTEQ/20092FC14/USstreets.shp
TILEITEM "LOCATION"
CLASS
NAME "Controlled Access FC5"
EXPRESSION (('[FUNC_CLASS]' eq '5') and ('[CONTRACC]' eq 'Y'))
MAXSCALEDENOM 50000
STYLE
SYMBOL 1
SIZE 3
COLOR 0 255 0
END
END
END
or
LAYER
NAME "controlled-access-fc5"
TYPE LINE
STATUS DEFAULT
TILEINDEX /maps/NAVTEQ/20092FC14/USstreets.shp
TILEITEM "LOCATION"
CLASS
NAME "Controlled Access FC5"
EXPRESSION (('[FUNC_CLASS]' eq '5') and ('[CONTRACC]' eq 'Y'))
MINSCALEDENOM 50000
STYLE
SYMBOL 1
SIZE 3
COLOR 0 255 0
END
END
END
_______________________________________________
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