MapServer / MapServer-import

3 stars 2 forks source link

Class expressions don't work in 4.2.4 #972

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: j.l.h.hartmann@uva.nl Date: 2004/10/19 - 14:13

Class expressions in 4.2.4 are broken. 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. Attached gifs
show Dutch municipalities with administrative numbers (variable GEM_NUM) below
500 in red and above in green for 4.2.3 (working) and 4.2.4 (all red).

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

Jan
tbonfort commented 12 years ago

Author: j.l.h.hartmann@uva.nl Date: 2004/10/19 - 14:56

This seems to have been a 4.2.4 problem. The 4.3 CVS version, as of oct 19 2004,
doesn't seem to have it any more. The 4.2.4 bug has been confirmed by Mike
Jackson in:

http://lists.umn.edu/cgi-bin/wa?A2=ind0410&L=mapserver-users&T=0&O=D&X=7D35330D95ED1AACB7
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2004/10/19 - 17:18

This is a duplicate of 974, which is fixed.

Will you please check out the attached maputil.c in bug 974 and confirm?