[mapserver-users] PERL MINSCALE MAXSCALE display control
Joe Bussell
joe at otsys.com
Tue Apr 16 07:25:16 PDT 2002
Is there anything about data which could override decalred MINSCALE and
MAXSCALE? I have road data for Los Angeles County and the four
surrounding counties. I declare the layer in my map file and set the
scale range to cover every zoom level I am using and I observe an odd
behavior. The default map does not show me the roads in LA, but the
surrounding counties display correctly. When I zoom out all the data is
painted. At any zoom level out away from that point I can observe the
road network. If I try to zoom in the LA roads do not get painted.
What are the right questions to ask debugging this? I have verified
that the MAP, LAYER and CLASS definitions are correct in my map file by
replacing the DATA value with other randomly selected data sets which do
not demonstrate this behavior. Any insight would be helpful.
Cordially,
Joe Bussell
-------------- next part --------------
#
# Start of map file
#
NAME CA
STATUS ON
SIZE 300 300
PROJECTION
"proj=latlong"
END
EXTENT -118.236313 34.013892 -118.201033 34.049172
SHAPEPATH "/mnt/data/td/la/shapefiles/"
IMAGECOLOR 161 161 161
FONTSET fonts/fonts.list
TRANSPARENT OFF
UNITS dd
# you may need to change this to match your MapServer build
IMAGETYPE PNG
#
# The Reference map is the thumbnail map that allows users to
# quickly navigate over the 'zoomed-out' map.
#
REFERENCE
IMAGE graphics/reference_ca.png
EXTENT -124.39263784515 32.5357813439163 -114.125230507624 42.0021917751363
SIZE 120 120
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
#
# The legend
#
LEGEND
STATUS ON
KEYSIZE 18 12
LABEL
TYPE TRUETYPE
FONT Arial
SIZE 8
COLOR 0 0 89
END
END
#
# Scalebar
#
SCALEBAR
STATUS ON
COLOR 255 255 255
IMAGECOLOR 255 255 255
LABEL
COLOR 255 255 255
SIZE tiny
END
STYLE 1
SIZE 80 10
UNITS MILES
INTERVALS 5
TRANSPARENT TRUE
END
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS
1 1
END
FILLED TRUE
END
SYMBOL
NAME 'star'
TYPE VECTOR
FILLED TRUE
POINTS
0 .375
.35 .375
.5 0
.65 .375
1 .375
.75 .625
.875 1
.5 .75
.125 1
.25 .625
END
END
SYMBOL
NAME "fill"
TYPE vector
FILLED TRUE
POINTS
0 1
1 1
END
END
#
# td_* are layers derived from tileing the TANA shapefiles
# order is important as the first layer declared is painted first.
LAYER
NAME country
GROUP defaultLayer
TYPE POLYGON
TILEINDEX td_a9.shp
STATUS OFF
LABELITEM "NAME"
CLASSITEM "NAME"
MAXSCALE 15550000
CLASS
COLOR 255 239 219
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME county
GROUP defaultLayer
TYPE POLYGON
TILEINDEX td_a8.shp
STATUS OFF
LABELITEM "NAME"
CLASSITEM "NAME"
MAXSCALE 15550000
CLASS
NAME "County Boundary"
COLOR 255 239 219
OUTLINECOLOR 97 97 97
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME majorWater
GROUP defaultLayer
TYPE POLYGON
TILEINDEX td_wa.shp
STATUS ON
LABELITEM "NAME"
CLASSITEM "NAME"
MAXSCALE 50000
CLASS
COLOR 0 0 255
OUTLINECOLOR 71 60 139
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME minorWater
GROUP defaultLayer
TYPE LINE
TILEINDEX td_wl.shp
STATUS ON
LABELITEM "NAME"
CLASSITEM "NAME"
MAXSCALE 10000
MINSCALE 0.01
CLASS
NAME "River"
COLOR 99 184 255
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME landUse
GROUP defaultLayer
TYPE POLYGON
TILEINDEX td_lu.shp
STATUS ON
LABELITEM "NAME"
CLASSITEM "DISPLTYP"
MAXSCALE 10000
MINSCALE 0.01
CLASS
NAME "Land use"
COLOR 0 126 0
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME urbanAreas
GROUP defaultLayer
TYPE POLYGON
TILEINDEX td_oa2.shp
STATUS ON
LABELITEM "NAME"
CLASSITEM "FEATTYP"
MAXSCALE 10000
MINSCALE 0.01
CLASS
NAME "Urban Area"
EXPRESSION ( ( [FEATTYP] == 9342 ) )
COLOR 250 235 215
OUTLINECOLOR 250 235 215
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME pointsOfInterrest
GROUP defaultLayer
TYPE POINT
TILEINDEX td_pi.shp
STATUS OFF
LABELITEM "NAME"
CLASSITEM "FEATTYP"
MAXSCALE 150000
MINSCALE 0.01
CLASS
# museum
EXPRESSION ( ( [FEATTYP] = 7317 ) )
NAME "Museum"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
CLASS
# shopping center
EXPRESSION ( ( [FEATTYP] = 7373 ) )
NAME "Shopping Center"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
CLASS
# outdoor stadium
EXPRESSION ( ( [FEATTYP] == 7374 ) )
NAME "Stadium"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
CLASS
# tourist attractions
EXPRESSION ( ( [FEATTYP] == 7376 ) )
NAME "Attraction"
COLOR 126 0 0
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
CLASS
# university & college
EXPRESSION ( ( [FEATTYP] == 7377 ) )
NAME "University"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
CLASS
# railway station
EXPRESSION ( ( [FEATTYP] == 7380 ) )
NAME "Rail Station"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
CLASS
# airport
EXPRESSION ( ( [FEATTYP] == 7383 ) )
NAME "Airport"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
CLASS
# conference and exhibition centers
EXPRESSION ( ( [FEATTYP] == 7385 ) )
NAME "Conference Center"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
CLASS
# rest areas
EXPRESSION ( ( [FEATTYP] = 7395 ) )
NAME "Rest Area"
BACKGROUNDCOLOR 255 255 255
COLOR 0 126 0
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
CLASS
# zoo
EXPRESSION ( ( [FEATTYP] == 9927 ) )
NAME "Zoo"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME cityCenter
GROUP defaultLayer
TYPE POINT
TILEINDEX td_sm.shp
STATUS ON
LABELITEM "NAME"
CLASSITEM "DISPCLASS"
MAXSCALE 100000
CLASS
EXPRESSION ( ( [DISPCLASS] = 3 ) )
#NAME "Big City"
COLOR 126 126 126
MAXSIZE 50
MINSIZE 1
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 126 126 126
FONT Arial
FORCE TRUE
MAXSIZE 256
MINDISTANCE 10
MINSIZE 4
OFFSET 0 0
PARTIALS TRUE
POSITION AUTO
SIZE 5
TYPE TRUETYPE
END
END
CLASS
EXPRESSION ( ( [DISPCLASS] = 6 ) )
#NAME "Medium City"
COLOR 126 126 126
MAXSIZE 50
MINSIZE 1
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 126 126 126
FONT Arial
FORCE TRUE
MAXSIZE 256
MINDISTANCE 10
MINSIZE 4
OFFSET 0 0
PARTIALS TRUE
POSITION AUTO
SIZE 4
TYPE TRUETYPE
END
END
CLASS
EXPRESSION ( ( [DISPCLASS] = 7 ) )
#NAME "Small City"
COLOR 126 126 126
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 126 126 126
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINSIZE 4
OFFSET 0 0
PARTIALS TRUE
POSITION AUTO
SIZE 3
TYPE TRUETYPE
END
END
CLASS
EXPRESSION ( ( [DISPCLASS] = 8 ) )
#NAME "Big Town"
COLOR 126 126 126
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 126 126 126
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINSIZE 4
OFFSET 0 0
PARTIALS TRUE
POSITION AUTO
SIZE 2
TYPE TRUETYPE
END
END
CLASS
EXPRESSION ( ( [DISPCLASS] = 9 ) )
#NAME "Medium Town"
COLOR 126 126 126
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 126 126 126
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINSIZE 4
OFFSET 0 0
PARTIALS TRUE
POSITION AUTO
SIZE 2
TYPE TRUETYPE
END
END
CLASS
EXPRESSION ( ( [DISPCLASS] = 10 ) )
#NAME "Village"
COLOR 126 126 126
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 126 126 126
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINSIZE 4
OFFSET 0 0
PARTIALS TRUE
POSITION AUTO
SIZE 2
TYPE TRUETYPE
END
END
CLASS
EXPRESSION ( ( [DISPCLASS] = 11 ) )
#NAME "Community"
COLOR 126 126 126
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 126 126 126
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINSIZE 4
OFFSET 0 0
PARTIALS TRUE
POSITION AUTO
SIZE 1
TYPE TRUETYPE
END
END
CLASS
EXPRESSION ( ( [DISPCLASS] = "12" ) )
#NAME "Small Community"
COLOR 126 126 126
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 126 126 126
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINSIZE 4
OFFSET 0 0
PARTIALS TRUE
POSITION AUTO
SIZE 1
TYPE TRUETYPE
END
END
END
LAYER
NAME bridges
GROUP defaultLayer
TYPE LINE
TILEINDEX td_ls.shp
STATUS ON
LABELITEM "NAME"
CLASSITEM "STRUCTTYP"
MAXSCALE 10000
MINSCALE 0.01
CLASS
NAME "Bridge"
COLOR 126 126 126
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
OVERLAYBACKGROUNDCOLOR 255 255 255
OVERLAYCOLOR 126 126 126
OVERLAYOUTLINECOLOR 0 0 0
OVERLAYSIZE 1
OVERLAYMINSIZE 0
OVERLAYMAXSIZE 50
OVERLAYSYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME ferries
GROUP defaultLayer
TYPE LINE
TILEINDEX td_fe.shp
STATUS ON
LABELITEM "NAME"
CLASSITEM "FRC"
MAXSCALE 10000
MINSCALE 0.01
CLASS
NAME "Ferry"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
OUTLINECOLOR 0 0 0
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
OVERLAYBACKGROUNDCOLOR 255 255 255
OVERLAYCOLOR 126 126 126
OVERLAYOUTLINECOLOR 0 0 0
OVERLAYSIZE 1
OVERLAYMINSIZE 0
OVERLAYMAXSIZE 50
OVERLAYSYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME street8
GROUP defaultLayer
TYPE LINE
TILEINDEX td_08.shp
STATUS OFF
LABELITEM "NAME"
CLASSITEM "FRC"
MAXSCALE 10000
CLASS
NAME "Allies & Small Streets"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
OVERLAYBACKGROUNDCOLOR 255 255 255
OVERLAYCOLOR 126 126 126
OVERLAYOUTLINECOLOR 0 0 0
OVERLAYSIZE 1
OVERLAYMINSIZE 0
OVERLAYMAXSIZE 50
OVERLAYSYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME street7
GROUP defaultLayer
TYPE LINE
TILEINDEX td_07.shp
STATUS OFF
LABELITEM "NAME"
CLASSITEM "FRC"
MAXSCALE 10000
CLASS
NAME "Small Streets"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
OVERLAYBACKGROUNDCOLOR 255 255 255
OVERLAYCOLOR 126 126 126
OVERLAYOUTLINECOLOR 0 0 0
OVERLAYSIZE 1
OVERLAYMINSIZE 0
OVERLAYMAXSIZE 50
OVERLAYSYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME street6
GROUP defaultLayer
TYPE LINE
TILEINDEX td_06.shp
STATUS OFF
LABELITEM "NAME"
CLASSITEM "FRC"
MAXSCALE 100000
CLASS
NAME "Small surface streets"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
OVERLAYBACKGROUNDCOLOR 255 255 255
OVERLAYCOLOR 126 126 126
OVERLAYOUTLINECOLOR 0 0 0
OVERLAYSIZE 1
OVERLAYMINSIZE 0
OVERLAYMAXSIZE 50
OVERLAYSYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME street5
GROUP defaultLayer
TYPE LINE
TILEINDEX td_05.shp
STATUS OFF
LABELITEM "NAME"
CLASSITEM "FRC"
MAXSCALE 200000
MINSCALE 0.01
CLASS
NAME "Streets"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
OVERLAYBACKGROUNDCOLOR 255 255 255
OVERLAYCOLOR 126 126 126
OVERLAYOUTLINECOLOR 0 0 0
OVERLAYSIZE 1
OVERLAYMINSIZE 0
OVERLAYMAXSIZE 50
OVERLAYSYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME street4
GROUP defaultLayer
TYPE LINE
TILEINDEX td_04.shp
STATUS OFF
LABELITEM "NAME"
CLASSITEM "FRC"
MAXSCALE 150000
CLASS
NAME "Major Streets"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
OVERLAYBACKGROUNDCOLOR 255 255 255
OVERLAYCOLOR 126 126 126
OVERLAYOUTLINECOLOR 0 0 0
OVERLAYSIZE 1
OVERLAYMINSIZE 0
OVERLAYMAXSIZE 50
OVERLAYSYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE MEDIUM
TYPE TRUETYPE
END
END
END
LAYER
NAME street3
GROUP defaultLayer
TYPE LINE
TILEINDEX td_03.shp
STATUS OFF
LABELITEM "NAME"
CLASSITEM "FRC"
#MAXSCALE 1550000
#MINSCALE 0.001
CLASS
NAME "Highways"
BACKGROUNDCOLOR 255 255 255
COLOR 126 126 126
MAXSIZE 50
MINSIZE 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE 12
TYPE TRUETYPE
END
END
END
LAYER
NAME street1
GROUP defaultLayer
TYPE LINE
TILEINDEX td_01.shp
#DATA usa06037______00
STATUS ON
LABELITEM "NAME"
MAXSCALE 15550000.0
MINSCALE 0.00001
CLASS
NAME "US Highways"
BACKGROUNDCOLOR 255 255 255
COLOR 0 255 0
SIZE 1
SYMBOL 0
LABEL
ANGLE AUTO
ANTIALIAS TRUE
BUFFER 2
COLOR 0 0 0
FONT Arial
FORCE FALSE
MAXSIZE 256
MINDISTANCE 10
MINFEATURESIZE AUTO
MINSIZE 4
OFFSET 0 0
PARTIALS FALSE
POSITION AUTO
SIZE 12
TYPE TRUETYPE
END
END
END
LAYER
NAME street0
GROUP defaultLayer
TYPE LINE
TILEINDEX td_00.shp
STATUS OFF
LABELITEM "NAME"
#MAXSCALE 15550000
#MINSCALE 0.001
CLASS
NAME "Interstates"
COLOR 255 0 0
SIZE 3
SYMBOL 0
END
END
LAYER
NAME street01_annotation
GROUP defaultLayer
STATUS OFF
TILEINDEX td_01.shp
TYPE ANNOTATION
LABELITEM "ROUTENUM"
CLASSITEM "ROUTENUM"
CLASS
EXPRESSION /HWY.*/
COLOR 0 0 0
SYMBOL 'symbols/sthwy.png'
LABEL
COLOR 0 0 0
WRAP "/"
#MINFEATURESIZE 40
MINDISTANCE 150
POSITION CC
SIZE tiny
END
END
CLASS
EXPRESSION /US.*/
COLOR 0 0 0
SYMBOL 'symbols/ushwy.png'
LABEL
COLOR 0 0 0
WRAP "/"
#MINFEATURESIZE 40
MINDISTANCE 150
POSITION CC
SIZE tiny
END
END
CLASS
EXPRESSION /I.*/
COLOR 0 0 0
SYMBOL 'symbols/interstate.png'
LABEL
COLOR 255 255 255
WRAP "/"
#MINFEATURESIZE 40
MINDISTANCE 150
POSITION CC
SIZE tiny
END
END
END
LAYER
NAME street00_annotation
GROUP defaultLayer
STATUS OFF
TILEINDEX td_00.shp
TYPE ANNOTATION
LABELITEM "NAME"
CLASS
COLOR 200 0 0
SYMBOL 'symbols/interstate.png'
LABEL
COLOR 255 255 255
WRAP "/"
#MINFEATURESIZE 40
MINDISTANCE 150
POSITION CC
SIZE TINY
END
END
END
LAYER
NAME SensorPoint
TYPE POINT
STATUS ON
CLASS
NAME 'Slow'
COLOR 255 0 0
OUTLINECOLOR 255 0 0
SYMBOL 'circle'
SIZE 6
LABEL
END
END
CLASS
NAME 'Medium'
COLOR 255 255 0
OUTLINECOLOR 255 255 0
SYMBOL 'circle'
SIZE 6
LABEL
END
END
CLASS
NAME 'Fast'
COLOR 0 255 0
OUTLINECOLOR 0 255 0
SYMBOL 'circle'
SIZE 6
LABEL
END
END
CLASS
NAME 'Start'
COLOR 0 255 0
OUTLINECOLOR 255 255 255
SYMBOL 'star'
SIZE 15
LABEL
END
END
CLASS
NAME 'Finish'
COLOR 255 0 0
OUTLINECOLOR 255 255 255
SYMBOL 'star'
SIZE 15
LABEL
END
END
CLASS
NAME 'Unknown'
COLOR 128 128 128
OUTLINECOLOR 0 0 0
SYMBOL 'circle'
SIZE 6
LABEL
END
END
END
LAYER
NAME SensorLine
TYPE LINE
STATUS ON
FEATURE
END
CLASS
NAME 'Slow'
COLOR 255 0 0
OUTLINECOLOR 0 0 0
SYMBOL 'circle'
SIZE 5
LABEL
COLOR 0 0 255
TYPE BITMAP
SIZE LARGE
PARTIALS TRUE
END
END
CLASS
NAME 'Medium'
COLOR 255 255 0
OUTLINECOLOR 0 0 0
SYMBOL 'circle'
SIZE 5
LABEL
COLOR 0 0 255
TYPE BITMAP
SIZE LARGE
PARTIALS TRUE
END
END
CLASS
NAME 'Fast'
COLOR 0 255 0
OUTLINECOLOR 0 0 0
SYMBOL 'circle'
SIZE 5
LABEL
COLOR 0 0 255
TYPE BITMAP
SIZE LARGE
PARTIALS TRUE
END
END
END
LAYER
NAME new_route
TYPE LINE
STATUS ON
FEATURE
END
CLASS
NAME 'segment'
OUTLINECOLOR 128 0 0
COLOR 30 144 255
SYMBOL 'circle'
SIZE 5
END
CLASS
NAME 'segment2'
OUTLINECOLOR 128 128 128
COLOR 255 255 255
SYMBOL 'circle'
SIZE 5
END
END
LAYER
NAME Labelling
TYPE LINE
STATUS OFF
TRANSFORM FALSE
LABELCACHE FALSE
CLASS
NAME 'gray'
SIZE 1
LABEL
COLOR 0 0 0
OUTLINECOLOR 255 255 255
TYPE TRUETYPE
FONT Arial
SIZE 7
POSITION UC
END
END
FEATURE
END
END
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
HEADER ca_header.html
TEMPLATE ca.html
FOOTER ca_footer.html
MINSCALE 0.001
MAXSCALE 15550000
LOG "/home/dodger/public_html/mapsite/tmp/log.txt"
#IMAGEPATH "/a/perforce/ots/traffic/mapsite/tmp/"
#IMAGEURL "/~bud/mapsite/tmp/"
METADATA
WMS_TITLE "TrafficDodger Demo"
WMS_ABSTRACT "This is the TrafficDodger Demo application for Los Angeles Metro."
WMS_ACCESSCONSTRAINTS none
# change this value to match your setup
WMS_ONLINERESOURCE "http://extempore.otsys.com/~dodger/mapsite/"
WMS_SRS "EPSG:26915"
END
END
END # Map File
More information about the MapServer-users
mailing list