[maplab-users] Viewing Classified map
ISAAC KWADWO NTI
ikeivy2000 at hotmail.com
Fri Oct 8 05:33:42 EDT 2004
Hello,
I am using maplab in viewing/publishing my mapfiles and it is very
wonderful. I have a classified map for area maps(colour areas with different
colours). I have a problem with viewing it. Below is the codes for the map
could any help me with an advice?.
#
# Start of canada.map file
#
#
MAP
NAME "CANADA MAP"
STATUS ON
EXTENT -2200000 -712631 3072800 3840000
SIZE 600 450
SHAPEPATH "./data"
SYMBOLSET "./etc/symbols.sym"
FONTSET "./etc/fonts.txt"
IMAGETYPE PNG
IMAGECOLOR 255 255 255
UNITS METERS
#
# Start of web interface definition
#
WEB
MINSCALE 2e+06
MAXSCALE 5e+07
#
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
# of the drive where the .MAP file resides.
#
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
END
#
# Start of reference object (keymap)
#
REFERENCE
STATUS ON
IMAGE "images/keymap.png"
SIZE 100 75
EXTENT -2.2e+06 -712631 3.0728e+06 3.84e+06
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
MINBOXSIZE 3
MAXBOXSIZE 0
MARKER 0
MARKERSIZE 0
END
#
# Start of querymap object
#
QUERYMAP
STATUS OFF
SIZE -1 -1
COLOR 255 0 0
STYLE HILITE
END
#
# Start of legend object
#
LEGEND
STATUS ON
IMAGECOLOR 255 255 255
POSITION LL
KEYSIZE 18 12
KEYSPACING 5 5
TEMPLATE "ttt"
LABEL
TYPE BITMAP
SIZE MEDIUM
OFFSET 0 0
BUFFER 0
MINDISTANCE -1
MINFEATURESIZE -1
COLOR 0 0 89
PARTIALS TRUE
FORCE FALSE
END
END
#
# Start of scalebar object
#
SCALEBAR
STATUS ON
COLOR 255 255 255
OUTLINECOLOR 0 0 0
BACKGROUNDCOLOR 0 0 0
IMAGECOLOR 255 255 255
UNITS KILOMETERS
INTERVALS 5
SIZE 150 5
STYLE 0
POSITION LL
LABEL
TYPE BITMAP
SIZE SMALL
OFFSET 0 0
BUFFER 0
MINDISTANCE -1
MINFEATURESIZE -1
COLOR 0 0 0
PARTIALS TRUE
FORCE FALSE
END
END
#
# Start of OutputFormat object
#
OUTPUTFORMAT
NAME "png"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE PC256
TRANSPARENT FALSE
END
#
# Start of layer definitions
#
LAYER
NAME "bathymetry"
STATUS ON
DATA "bath_mapserver.tif"
TYPE RASTER
UNITS METERS
SIZEUNITS PIXELS
TOLERANCE 0
TOLERANCEUNITS PIXELS
METADATA
"DESCRIPTION" "Elevation/Bathymetry"
END
END
# Layer
LAYER
NAME "land_fn"
STATUS ON
DATA "land_fn"
TYPE POLYGON
UNITS METERS
SIZEUNITS PIXELS
TOLERANCE 0
TOLERANCEUNITS PIXELS
METADATA
"DESCRIPTION" "Foreign Lands"
END
CLASS
NAME "Foreign Lands"
TEMPLATE "ttt_query.html"
STYLE
SYMBOL 0
COLOR 240 240 240
OUTLINECOLOR 199 199 199
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
END
LAYER
NAME "prov_bound"
STATUS ON
DATA "province"
TYPE LINE
UNITS METERS
SIZEUNITS PIXELS
TOLERANCE 0
TOLERANCEUNITS PIXELS
METADATA
"DESCRIPTION" "Province"
END
CLASSITEM 'SYMBOL'
# SYMBOL needs single quotes because it's both a field name in the shapefile
and a keyword for .MAP files
CLASS
COLOR 255 120 120
SYMBOL 0
EXPRESSION ([REG_CODE]=10)
NAME "Terre-Neuve"
END
CLASS
COLOR 120 255 120
SYMBOL 0
EXPRESSION ([REG_CODE]=11)
NAME "Ile-du-Prince-Edouard"
END
CLASS
COLOR 120 120 255
SYMBOL 0
EXPRESSION ([REG_CODE]=12)
NAME "Nouvelle-Ecosse"
END
CLASS
COLOR 255 120 255
SYMBOL 0
EXPRESSION ([REG_CODE]=13)
NAME "Nouveau-Brunswick"
END
CLASS
COLOR 120 255 255
SYMBOL 0
EXPRESSION ([REG_CODE]=24)
NAME "Quebec"
END
CLASS
COLOR 255 255 120
SYMBOL 0
EXPRESSION ([REG_CODE]=35)
NAME "Not Known 1"
END
CLASS
COLOR 157 0 0
SYMBOL 0
EXPRESSION ([REG_CODE]=46)
NAME "Unknown2"
END
CLASS
COLOR 255 128 64
SYMBOL 0
EXPRESSION ([REG_CODE]=47)
NAME "Unknown3"
END
CLASS
COLOR 64 128 255
SYMBOL 0
EXPRESSION ([REG_CODE]=48)
NAME "Nouveau-Brunswick"
END
CLASS
COLOR 128 128 0
SYMBOL 0
EXPRESSION ([REG_CODE]=59)
NAME "Colombia-Britannique"
END
CLASS
COLOR 199 109 56
SYMBOL 0
EXPRESSION ([REG_CODE]=60)
NAME "Territoire du Yukon"
END
CLASS
COLOR 157 0 0
SYMBOL 0
EXPRESSION ([REG_CODE]=61)
NAME "Nunavut"
END
END
END # Layer
END
That which persist in doing becomes easier - not that the task has changed
but our ability to do it has increased.
Isaac Kwadwo Nti
Kaiser Str.19,
76131 Karlsruhe
Germany.
Home Tel: +497213529267
Mobile : +491798846336
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
More information about the Maplab-users
mailing list