Label scaling trouble
Miguel de la Fuente
mjdelafuente at GMAIL.COM
Mon Mar 6 07:49:48 PST 2006
Hello, I'm trying to scale label in a layer and I can't get it. the.
I`m using MapServer version 4.6.1, as PHP MapScript module.
.Map code is as follows:
MAP
NAME "PruebaMap"
STATUS ON
EXTENT 5000000 5430000 5800000 6350000
SIZE 800 520
SHAPEPATH "./"
SYMBOLSET "../symbols/symbols.sym"
FONTSET "../fonts/fonts2.txt"
IMAGETYPE PNG
IMAGECOLOR 255 255 255
UNITS METERS
REFERENCE
STATUS ON
IMAGE "../reference/reference2.png"
SIZE 150 150
EXTENT 5000000 5430000 5800000 6350000
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
MINBOXSIZE 5
MAXBOXSIZE 0
MARKERSIZE 0
END
SCALEBAR
STATUS EMBED
COLOR 255 255 255
OUTLINECOLOR 0 0 0
BACKGROUNDCOLOR 0 0 0
TRANSPARENT ON
UNITS KILOMETERS
INTERVALS 5
SIZE 300 5
STYLE 0
POSITION LC
POSTLABELCACHE TRUE
LABEL
SIZE SMALL
OFFSET 0 0
COLOR 255 0 0
ANTIALIAS TRUE
PARTIALS TRUE
FORCE TRUE
END
END
OUTPUTFORMAT
NAME "png"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE RGB
TRANSPARENT OFF
END
LAYER
NAME "Partidos"
STATUS ON
DATA "new_geom FROM (select OID,* from partidos) as foo using unique OID
using srid=-1"
TYPE POLYGON
CONNECTIONTYPE POSTGIS
CONNECTION "user=XXX password=XXX dbname=XXX host=XXX port=5432"
LABELMAXSCALE 1500000
LABELMINSCALE 50000
POSTLABELCACHE TRUE
LABELITEM "nombre"
CLASS
NAME "Partido"
LABEL
TYPE TRUETYPE
FONT "arial_black"
OUTLINECOLOR 255 255 255
MINSIZE 5
MAXSIZE 30
MINFEATURESIZE AUTO
ANTIALIAS TRUE
END
STYLE
COLOR 235 230 217
OUTLINECOLOR 0 0 0
ANTIALIAS TRUE
END
END
END
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060306/af5fdad4/attachment.htm>
More information about the MapServer-users
mailing list