Opened 14 years ago

Closed 14 years ago

#3477 closed defect (fixed)

getSymbol(): Symbol definition error. Parsing error near (angle)

Reported by: relet Owned by: sdlime
Priority: normal Milestone:
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords:
Cc:

Description

I get the error

getSymbol(): Symbol definition error. Parsing error near (angle)

when using the following code in a mapfile parsed by trunk, which used to work in earlier mapserver versions (5.4.0-beta3).

CLASS
         NAME "Tekst type 3"
         EXPRESSION (([skriftkode] >= 7) && ([skriftkode] <= 11))
         #MAXSCALE 400000
         TEXT ([textstring])
         LABEL
            PRIORITY [fontsize]
            angle [myangle]
            COLOR 1 1 1
            OUTLINECOLOR 254 254 229
            TYPE TRUETYPE
            FONT "verdana"
            SIZE [fontsize_2]
            ENCODING "UTF-8"
            #MINSIZE 8
            ANTIALIAS TRUE
            POSITION cc
            FORCE TRUE
            PARTIALS TRUE
         END
      END

The same syntax works fine when using a numeric value instead of the postgis column name "myangle".

Attachments (1)

anglesymbol.patch (449 bytes ) - added by relet 14 years ago.
MS_BINDING was ignored in the lexer, probably due to someone adding a keyword in the meantime.

Download all attachments as: .zip

Change History (3)

in reply to:  description comment:1 by relet, 14 years ago

The correct error message should read

Parsing error near (myangle).

by relet, 14 years ago

Attachment: anglesymbol.patch added

MS_BINDING was ignored in the lexer, probably due to someone adding a keyword in the meantime.

comment:2 by relet, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.