[Mapserver-users] Funny Scalings
Ed McNierney
ed at topozone.com
Wed Sep 10 05:45:35 PDT 2003
Matthew -
Your mapfile says:
EXTENT 110 -40 155 -15
UNITS meters
and I don't think your map area is really 45 meters by 25 meters! If the EXTENT is correct, it looks like your data is in Decimal Degrees, for which you should use UNITS DD instead.
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
ed at topozone.com
(978) 251-4242
-----Original Message-----
From: Matthew Smith [mailto:matt at kbc.net.au]
Sent: Wednesday, September 10, 2003 1:51 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Funny Scalings
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
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list