[Mapserver-users] Funny Scalings
Matthew Smith
matt at kbc.net.au
Tue Sep 9 22:50:47 PDT 2003
Hi All
I am experiencing some weirdness with Mapserver 3.6.6 running on Linux
(kernel 2.4.19, SuSE distribution).
All scales appear to be out by a factor of 10,000. I have had to set
MAXSCALE and MINSCALE with far fewer zeroes at the end than I would have
thought to get the desired effect
Moving the decimal point wouldn't be any great problem for me if I
weren't using the scalebar which is out by the same factor.
An abbreviated version of my mapfile is shown below. Unforutnately I
don't have Mapserver running on my production server, so the whole
system isn'a available on the WWW for inspection.
Suggestions anyone?
Cheers
Matthew Smith
NAME SA
STATUS ON
SIZE 400 400
EXTENT 110 -40 155 -15
UNITS meters
SHAPEPATH "data"
IMAGECOLOR 128 128 255
IMAGETYPE PNG
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END
WEB
HEADER sa.html
TEMPLATE sa.html
FOOTER sa.html
MINSCALE 2.5
MAXSCALE 320
END
QUERYMAP
SIZE 400 400
STATUS ON
STYLE HILITE
COLOR 255 0 0
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 255 255 255
SIZE LARGE
END
STYLE 1
SIZE 80 2
COLOR 255 255 255
UNITS meters
INTERVALS 1
TRANSPARENT TRUE
STATUS TRUE
END
#
# Matthew's Layers
#
LAYER
NAME "sea"
DATA oceansea
STATUS DEFAULT
TYPE POLYGON
CLASS
COLOR 128 128 255
END
END
LAYER NAME "states"
DATA LocAust
STATUS DEFAULT
TYPE POLYGON
CLASSITEM "STATE"
CLASS
name "SOUTH AUSTRALIA"
expression "SOUTH AUSTRALIA"
color 200 200 200
#color 255 255 192
outlinecolor 0 0 0
END
CLASS
expression /./
color 255 132 12
outlinecolor 0 0 0
END
END
LAYER
NAME "lga"
DATA LGA
STATUS DEFAULT
TYPE POLYGON
CLASSITEM "NAME"
CLASS
EXPRESSION /./
COLOR 255 255 192
OUTLINECOLOR 0 0 0
END
END
LAYER
NAME roads
TYPE LINE
DATA roadl
STATUS default
maxscale 5
CLASS
COLOR 255 0 0
END
END
LAYER
NAME "locs"
TYPE POINT
DATA sa
STATUS DEFAULT
maxscale 30
CLASS
SYMBOL 'circle'
SIZE 4
NAME 'Localities'
OUTLINECOLOR 0 0 0
END
END
LAYER
NAME "locnames"
TYPE ANNOTATION
Data sa
STATUS DEFAULT
LABELITEM "locn"
CLASSITEM "locn"
maxscale 15
CLASS
EXPRESSION "Kadina"
COLOR -1 -1 -1
LABEL
COLOR 0 0 0
SIZE MEDIUM
END
END
CLASS
EXPRESSION "Mintaro"
COLOR -1 -1 -1
LABEL
COLOR 0 0 0
SIZE MEDIUM
END
END
CLASS
EXPRESSION "Tarlee"
COLOR -1 -1 -1
LABEL
COLOR 0 0 0
SIZE MEDIUM
END
END
CLASS
EXPRESSION "Mallala"
COLOR -1 -1 -1
LABEL
COLOR 0 0 0
SIZE MEDIUM
END
END
END
# End of file
END
More information about the MapServer-users
mailing list