Opened 13 years ago

Closed 13 years ago

#3941 closed defect (fixed)

Label background color given by database

Reported by: jmg Owned by: tbonfort
Priority: normal Milestone: 6.0.1 release
Component: MapServer C Library Version: 6.0
Severity: normal Keywords:
Cc:

Description

I have to draw labels having both foreground and background colors coming for postgis database. I do use a class for rendering just like:

LABELITEM 'textvalue' CLASS

LABEL

STYLE

GEOMTRANSFORM 'labelpoly'

COLOR [backgroundcolor] #do nothing

END

COLOR [foregroundcolor] # that is OK

FONT "small" SIZE 1 OFFSET 12 24 FORCE true

END

END

As a result I got label in the right place, with the right foreground color, but no background. Of course there is no error in logfiles, parsing is OK. According to the documentation, the COLOR entry (from STYLE) can have an dynamic attribute. I saw in several forum this kind of dynamicity was to be implemented in release 5.0, then 6.0.

I know I can use EXPRESSION and a mapfile-generator to manage all database foreground/background sets, but this is not very good neither for performance nor for long term maintenance.

Change History (3)

comment:1 by tbonfort, 13 years ago

Owner: changed from pramsey to tbonfort
Status: newassigned

comment:2 by tbonfort, 13 years ago

Component: PostGIS InterfaceMapServer C Library
Milestone: 6.0 release6.0.1 release

comment:3 by tbonfort, 13 years ago

Resolution: fixed
Status: assignedclosed

Fixed in trunk in r11877

Fixed in 6.0 branch in r11878

Test added in r11879

Note: See TracTickets for help on using tickets.