[Mapserver-users] Problem with Labeling
Jaya Prasad Rao E
rao at rboxtech.com
Thu Jan 23 02:52:26 PST 2003
Hi,
I am just starting exploring Mapserver.
I modified the demo.map to mydemo.map and works fine, when I start labeling
with one of the attribute called 'LOT' then I can only see the labels on the
map, I can't see the full map.
Please help me in this problem
Here is my map file
------------------------------------------------------------------
#
# Start of map file
#
NAME DEMO
STATUS ON
SIZE 800 800
EXTENT 1022.09759693411 -515.024894557018 6196.39999920664 6607.42360392416
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 255 255 255
#FONTSET "/windows/fonts"
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
HEADER demo_header.html
TEMPLATE demo.html
FOOTER demo_footer.html
MINSCALE 1000
MAXSCALE 1550000
IMAGEPATH "/apache/htdocs/tmp/"
IMAGEURL "/tmp/"
METADATA
WMS_TITLE "UMN MapServer Itasca Demo"
WMS_ABSTRACT "This is the UMN MapServer demonstration application for
Itasca County located in north central Minnesota."
WMS_ACCESSCONSTRAINTS none
# change this value to match your setup
WMS_ONLINERESOURCE "http://localhost/itasca/demo_init.html"
WMS_SRS "EPSG:26915"
END
END
QUERYMAP
SIZE 200 200
STATUS ON
STYLE HILITE
COLOR 255 0 0
END
#
# Start of reference map
#
REFERENCE
IMAGE graphics/reference.gif
SIZE 120 120
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 255 255 255
SIZE tiny
END
STYLE 1
SIZE 80 2
COLOR 255 255 255
UNITS kilometers
INTERVALS 1
TRANSPARENT TRUE
STATUS TRUE
END
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 0 0 END
FILLED TRUE
END
#
# Start of layer definitions
#
LAYER
NAME mycadas_region
TYPE POLYGON
STATUS DEFAULT
DATA mycadas_region
LABELITEM 'LOT'
CLASSITEM 'LOT'
CLASS
LABEL
ANGLE auto
SIZE tiny
COLOR 0 192 0
TYPE bitmap
FONT Arial
POSITION UR
END
END
CLASS
# Make the superhighways brighter and 2 pixels wide
EXPRESSION ([LOT] >= 0 and [LOT] <= 4000)
COLOR 22 202 20
SYMBOL "circle"
SIZE 1
OUTLINECOLOR 0 0 0
END
CLASS
# Make the superhighways brighter and 2 pixels wide
EXPRESSION ([LOT] > 4000 and [LOT] <= 8000)
COLOR 202 20 20
SYMBOL "circle"
SIZE 1
OUTLINECOLOR 0 0 0
END
CLASS
# Make the superhighways brighter and 2 pixels wide
EXPRESSION ([LOT] > 8000 )
COLOR 22 22 202
SYMBOL "circle"
SIZE 1
OUTLINECOLOR 0 0 0
END
CLASS # every other county in the state
EXPRESSION /./
OUTLINECOLOR 128 128 128
SIZE 1
COLOR 255 255 255
END
METADATA
WMS_TITLE "County Boundary"
WMS_ABSTRACT "Itasca County boundary shapefile. See
http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html for more
information."
WMS_SRS "EPSG:26915"
END
END
END # Map File
------------------------------------------------------------
Thanks in advance
Best Regards
Rao.
More information about the MapServer-users
mailing list