[mapserver-users] How does SYMBOLSCALEDENOM work

Jackey Cheung cheung.jackey at gmail.com
Thu Apr 15 03:00:30 PDT 2010


Hi All,

I've got a layer like this:

LAYER
NAME "country"
STATUS DEFAULT

TYPE POLYGON
UNITS METERS

CONNECTIONTYPE POSTGIS
CONNECTION "..................."
DATA "geom FROM view_country_en USING UNIQUE oid USING SRID=4326"

PROCESSING "LABEL_NO_CLIP=ON"
PROCESSING "CLOSE_CONNECTION=DEFER"

PROJECTION
"init=epsg:4326"
END
 LABELITEM "sname"
SYMBOLSCALEDENOM 15000000
 CLASS
STYLE
COLOR 230 230 220
END

LABEL
MINSIZE 7
MAXSIZE 24
ANGLE [angle]
PRIORITY [priority]
COLOR 0 0 0
OUTLINECOLOR 255 255 240
OUTLINEWIDTH 2
TYPE TRUETYPE
ENCODING "UTF-8"
FONT "arial-bold"
SIZE 24
BUFFER 5
POSITION AUTO
PARTIALS FALSE
WRAP " "
ALIGN CENTER
MAXLENGTH 0
MINFEATURESIZE AUTO
END
END
END

At scale 1:1693, the map appears normally (1693.png). While zoomed in to
1:846, the country layers is gone (8461.jpg). But if I comment out the
line SYMBOLSCALEDENOM line, or change the it to a smaller number, the
country layer is rendered normally (8462.jpg).

Why?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100415/d03a78e8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1693.png
Type: image/png
Size: 2640 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100415/d03a78e8/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8461.jpg
Type: image/jpeg
Size: 6482 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100415/d03a78e8/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8462.jpg
Type: image/jpeg
Size: 6464 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100415/d03a78e8/attachment-0001.jpg>


More information about the MapServer-users mailing list