FOLLOW UP: Can't declare multiple MAXSCALE's
David L. Kriske
david at kriske.com
Wed Nov 8 15:57:39 PST 2000
I am still having trouble inserting multiple MAXSCALE statements in my map
file. I have since tried compiling mapserver on a Linux machine and get
the same behavior when adding multiple MAXSCALES. I have also tried
changing the units to meters as suggested. Could it be a shapefile
specific error? What other areas does the MAXSCALE function depend upon?
David
--- previous message forwarded below ---
I'm running Mapserver 3.3.011 (also tried .012) compiled for NT 4.0 (using
the precompiled
one on the mapserver site). For some reason, I am unable to declare a
MAXSCALE statement for more than one layer. If I do, I get...
Mapserv.exe Application Error - The instruction at <big memory address>
referenced memory at "<another big memory address>". The memory could not
be "written"
Then Mapserver bombs and I get a CGI Error in the browser.
If I take out all but one (or all) of the MAXSCALE statements it renders
the map
fine. I'm using the Maperserver Tutorial Example 4 adjusted to use my own
shapefiles. I haven't tried running Mapserver on a Linux Box, is the NT
build buggy? Here's my .map file if it helps.....
Thanks in advance for any help you may provide. This seems to be a great
program in every other respect!
David
NAME AOP
EXTENT -126 45 -65 30
FONTSET "d:\inetpub\wwwroot\mapserver\fonts\fontset.txt"
UNITS dd
SIZE 500 500
SHAPEPATH "e:\MAPSERVER\SHAPES\"
WEB
TEMPLATE "d:\inetpub\wwwroot\mapserver\browser.html"
IMAGEPATH "d:\inetpub\wwwroot\mapserver\images\"
IMAGEURL "/mapserver/images/"
END
LEGEND
STATUS ON
LABEL
TYPE TRUETYPE
FONT arial
COLOR 0 0 0
SIZE 12
ANTIALIAS
END
END
SCALEBAR
STATUS ON
INTERVALS 2
SIZE 100 2
COLOR 0 0 0
OUTLINECOLOR 0 0 0
UNITS miles
LABEL
COLOR 0 0 0
SIZE medium
END
END
LAYER
NAME "us"
DATA us
STATUS DEFAULT
TYPE POLYGON
CLASS
COLOR 212 212 212
OUTLINECOLOR 140 140 140
END
END
LAYER
NAME "aops"
DATA aop102500_8
STATUS DEFAULT
TYPE POLYGON
CLASS
NAME "AOP"
COLOR 102 110 176
END
END
LAYER
NAME "freeways"
DATA roads
CLASSITEM "CFCC"
STATUS DEFAULT
TYPE LINE
CLASS
NAME "Freeways"
EXPRESSION /A1[0-9]/
COLOR 223 0 41
END
MAXSCALE 50000
END
LAYER
NAME "roads"
DATA roads
CLASSITEM "CFCC"
STATUS DEFAULT
TYPE LINE
CLASS
NAME "Major Arterials"
EXPRESSION /A[2-3][0-9]/
COLOR 245 183 87
END
MAXSCALE 100000
END
LAYER
NAME "streets"
DATA roads
CLASSITEM "CFCC"
STATUS DEFAULT
TYPE LINE
CLASS
NAME "Minor Streets"
EXPRESSION /A[4-7][0-9]/
COLOR 0 0 0
END
END
END
More information about the MapServer-users
mailing list