MAXSCALE bug in trunk
Stephen Woodbridge
woodbri at SWOODBRIDGE.COM
Wed Jul 18 23:12:37 EDT 2007
I have found a problem with the MAXSCALE computation in mapserver. This
showed up while looking at the AGG code, but might not have anything to
do with that per say.
The layer (see below) has the MAXSCALE 4000100.0 but when I request a
map at scale=4000000 the cities do not show up.
http://imaptools.com/cgi-bin/mapserv-4.99?mode=map&layers=all&scale=4000000&map=/u/data/maps/google-agg.map&mapxy=-87.65+41.85&map_size=450+350
http://imaptools.com/cgi-bin/mapserv-4.99?mode=map&layers=all&scale=3997555&map=/u/data/maps/google-agg.map&mapxy=-87.65+41.85&map_size=450+350
this one finally works:
http://imaptools.com/cgi-bin/mapserv-4.99?mode=map&layers=all&scale=3997554&map=/u/data/maps/google-agg.map&mapxy=-87.65+41.85&map_size=450+350
This mapfile works fine in 4.10, here is a comparison of 4.10 and trunk
with AGG.
http://imaptools.com/maps/compare-maps2.php?loc=2&ll=41.85+-87.65&address=&city=boston&state=ma&zipcode=&country=&asrv=1&amf=%2Fu%2Fdata%2Fmaps%2Fgoogle-aa2.map&msa=mapserv-4.10&bsrv=1&bmf=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&msb=mapserv-4.99&submit=Show
-Steve
Here is the layer in question:
LAYER
NAME "US_Places"
STATUS DEFAULT
DATA "us/placenames2"
TYPE ANNOTATION
FILTER ([POP] >= 5000)
MAXSCALE 4000100.0
CLASSITEM "POP"
LABELITEM "NAME"
CLASS
NAME "Mega Cities"
EXPRESSION ([POP] > 100000)
SYMBOL "target-1"
COLOR 0 0 0
LABEL
TYPE TRUETYPE
FONT "arial-bold"
SIZE 9
POSITION AUTO
BUFFER 5
COLOR 0 0 0
OUTLINECOLOR 245 245 231
#ANTIALIAS TRUE
PARTIALS FALSE
END
END
CLASS
NAME "Major Cities"
EXPRESSION ([POP] >= 25000 && [POP] < 99999)
SYMBOL "target-2"
COLOR 0 0 0
LABEL
TYPE TRUETYPE
FONT "arial-bold"
SIZE 8
POSITION AUTO
BUFFER 5
COLOR 0 0 0
OUTLINECOLOR 245 245 231
#ANTIALIAS TRUE
PARTIALS FALSE
END
END
CLASS
NAME "Cities"
EXPRESSION ([POP] >= 5000 && [POP] < 24999)
SYMBOL "circle"
COLOR 255 255 255
OUTLINECOLOR 0 0 0
SIZE 5
LABEL
TYPE TRUETYPE
FONT "arial-bold"
SIZE 7
POSITION AUTO
BUFFER 5
COLOR 0 0 0
OUTLINECOLOR 245 245 231
#ANTIALIAS TRUE
PARTIALS FALSE
END
END
END
More information about the mapserver-dev
mailing list