Ticket #4227 (new defect)
Horizontal lines drawn for empty labels
|Reported by:||rblazek||Owned by:||pramsey|
|Cc:||rblazek, tbonfort, sdlime|
If a label field is empty, horizontal line / box is drawn instead of nothing. It happens if:
- CONNECTIONTYPE POSTGIS
- label field is of type character
- label style is defined
Label style example:
LABEL STYLE COLOR 192 192 192 END END
Postgres: "Values of type character are physically padded with spaces to the specified width n, and are stored and displayed that way. However, the padding spaces are treated as semantically insignificant."
It seems that Mapserver takes those empty spaces to create labelpoly geometry. It is probably wrong and definitely inconvenient.