Bug in CLASS expression in 4.2.4 ??
Jan Hartmann
j.l.h.hartmann at UVA.NL
Sat Oct 16 09:01:56 PDT 2004
Can others comfirm this very weird problem with CLASS expressions in
4.2.4? I'm using the following elementary MapFile:
layer
name municipalities
type polygon
status default
data "municipalities.shp"
class
expression([GEM_NUM] < 500)
color 255 0 0
outlinecolor 0 0 0
end
class
expression([GEM_NUM] >= 500)
color 0 255 0
outlinecolor 0 0 0
end
end
It should show Dutch municipalities with administrative numbers
(variable GEM_NUM) below 500 in red and above in green. It works in
4.2.3, but not in 4.2.4 (see attached gifs). In 4.2.4 everything gets
assigned to the first class, whatever the expression. However, simple
expressions, with a CLASSITEM and a string or a regex, are correct in
both versions. I can't imagine that this has gone unnoticed, but I can't
imagine either what I could have done wrong. It is an extremely simple
MapFile. I had the same problem with a much more complex PostGIS case,
so I first thought it was the PostGIS connector, but it is the same for
a simple shapefile. Any ideas?
Jan
Jan Hartmann
Department of Geography
University of Amsterdam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms4.2.3.gif
Type: image/gif
Size: 10909 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041016/5255d5d9/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms4.2.4.gif
Type: image/gif
Size: 10188 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041016/5255d5d9/attachment-0001.gif>
More information about the MapServer-users
mailing list