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: [email protected] [mailto:[email protected]] On Behalf Of Chris Kantarjiev Sent: Monday, August 31, 2009 3:17 PM To: [email protected] 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 [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
