[mapserver-users] mapfile for my problem
Stephen Lime
steve.lime at dnr.state.mn.us
Thu Dec 20 08:59:31 PST 2001
The status setting for the scalebar is wrong. Should be STATUS ON/OFF. ON != TRUE. At least at first glance that seems to be the problem.
Since you have no layers defined there is nothing to create a legend from. Futhermore class members in layers MUST have a NAME defined to show up in the legend.
Steve
Stephen Lime
Data & Applications Manager
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> G Kelley <gk1611 at ship.edu> 12/20/01 10:02AM >>>
Here's the mapfile:
------------------------------------------------------------
NAME TEST
EXTENT 471127 4751545 489292 4765610
UNITS FEET
SIZE 600 600
SHAPEPATH "/export/home/stu/gk1611/public_html/shapefiles"
INTERLACE OFF
#
# Start of layers
#
LAYER
NAME "Parcels"
DATA poly
STATUS DEFAULT
TYPE POLYGON
CLASS
COLOR 73 76 113
OUTLINECOLOR 0 0 0
END # end of class object
END # end of layer object
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 255 255 255
SIZE tiny
END
STYLE 1
SIZE 50 2
COLOR 255 255 255
UNITS FEET
INTERVALS 1
TRANSPARENT TRUE
STATUS TRUE
END
#
# Start of legend
#
LEGEND
STATUS ON
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
END # end of legend object
WEB
LOG "/export/home/stu/gk1611/public_html/output/mapserver.log"
IMAGEPATH "/export/home/stu/gk1611/public_html/output/"
IMAGEURL "/~gk1611/output/"
TEMPLATE "../testpoly/newtest.html"
END # end of web object
END # end of map file
------------------------------------------------------------
Thanks,
Gregg
More information about the MapServer-users
mailing list