Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#972 closed defect (fixed)

Class expressions don't work in 4.2.4

Reported by: j.l.h.hartmann@… Owned by: sdlime
Priority: highest Milestone: 4.2 release
Component: MapServer CGI Version: 4.2
Severity: major Keywords:
Cc: sgillies@…

Description

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

Attachments (3)

ms4.2.3.gif (10.7 KB ) - added by j.l.h.hartmann@… 20 years ago.
working expression in 4.2.3
ms4.2.4.gif (9.9 KB ) - added by j.l.h.hartmann@… 20 years ago.
broken expression in 4.2.4
ms4.2.4.2.gif (9.9 KB ) - added by j.l.h.hartmann@… 20 years ago.
broken expression in 4.2.4

Download all attachments as: .zip

Change History (5)

by j.l.h.hartmann@…, 20 years ago

Attachment: ms4.2.3.gif added

working expression in 4.2.3

by j.l.h.hartmann@…, 20 years ago

Attachment: ms4.2.4.gif added

broken expression in 4.2.4

by j.l.h.hartmann@…, 20 years ago

Attachment: ms4.2.4.2.gif added

broken expression in 4.2.4

comment:1 by j.l.h.hartmann@…, 20 years ago

Resolution: fixed
Status: newclosed
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

comment:2 by sgillies@…, 20 years ago

Cc: sgillies@… added
dependson: 974
Milestone: 4.2 release
Priority: highhighest
Version: unspecified4.2
This is a duplicate of 974, which is fixed.

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

Note: See TracTickets for help on using tickets.