Opened 14 years ago

Last modified 14 years ago

#3517 assigned defect

maplexer problem with TEXT

Reported by: regodon Owned by: sdlime
Priority: low Milestone:
Component: MapServer CGI Version: 5.6
Severity: normal Keywords:
Cc:

Description

Hello,

it seems there is some problem with TEXT and newlines:

  • OK. It displays data's value:

CLASS EXPRESSION ([data] == 1)

TEXT ([data]) STYLE COLOR -1 -1 -1 END LABEL TYPE TRUETYPE FONT FreeSans SIZE 12 MINSIZE 7 MAXSIZE 6 ANTIALIAS TRUE POSITION CC COLOR 255 255 0 END END

  • Wrong. It doesn't display any label:

CLASS EXPRESSION ([dato] == 1) TEXT ([dato])

STYLE COLOR -1 -1 -1 END LABEL TYPE TRUETYPE FONT FreeSans SIZE 12 MINSIZE 7 MAXSIZE 6 ANTIALIAS TRUE POSITION CC COLOR 255 255 0 END END

  • But it works with fixed labels. It displays '2':

CLASS EXPRESSION ([dato] == 1) TEXT '2'

STYLE COLOR -1 -1 -1 END LABEL TYPE TRUETYPE FONT FreeSans SIZE 12 MINSIZE 7 MAXSIZE 6 ANTIALIAS TRUE POSITION CC COLOR 255 255 0 END EN

It all began when i tried to write a class with EXPRESSION and TEST in just one line. It didn't work so i played with newlines and it seems the problem is related with EXPRESSION and with TEXT when using expressions delimited with ().

Regards,

Change History (2)

comment:1 by sdlime, 14 years ago

Status: newassigned

Do you have a small test data set? Or can you describe the dato column, looks like it's just an integer.

Steve

comment:2 by regodon, 14 years ago

Yes, dato column is just an integer. I haven't tried with other data types because i thought the problem was related with having more than one "([...])" tokens in the same line, since a newline fixed the problem.

Note: See TracTickets for help on using tickets.