no legendgraphic for class with (colored) TEXT as a symbol
Huub Fleuren
hfl at HOME.NL
Fri Jan 6 07:01:21 PST 2006
Bart,
thanks, the following is the correct way to do it
adding a symbol
SYMBOL
NAME B
TYPE TRUETYPE
FONT arial_bold
FILLED true
ANTIALIAS true
CHARACTER 'B'
END
and changing
CLASS
EXPRESSION ([PROJECTSOORT] = 200)
NAME "Bouwlocatie"
STYLE
SYMBOL 'B'
COLOR 255 100 0
SIZE 14
END
END
Regards, Huub (geodan)
Bart van den Eijnden (OSGIS) wrote:
> Huub,
>
> I don't think text is used for legends.
>
> How about defining a TRUETYPE symbol with the same font (arial_bold)
> and specifying the character (B) you want? That should work.
>
> Best regards,
> Bart
>
> Huub Fleuren wrote:
>
>> Hi list,
>>
>> I have a points layer that will show as big 14 point orange
>> arial_bold B's if its PROJECTSOORT = 200
>>
>> This goes allright
>>
>> The problem is that the legendgraphic request doesn't show this B,
>> nor its color, nothing in fact.
>>
>> If I insert a SYMBOL (e.g. a big point) the legendgraphic gives me
>> the symbol but the point will cover the B when showing the layer
>>
>> Could it be that the LABEL keyword interferes with the instruction
>> for the label in the legend
>>
>> CLASS
>> TEXT "B"
>> EXPRESSION ([PROJECTSOORT] = 200)
>> NAME "Bouwlocatie"
>> LABEL
>> SIZE 14
>> POSITION CC
>> COLOR 255 100 0
>> TYPE TRUETYPE
>> FONT arial_bold
>> ANTIALIAS false
>> BUFFER 0
>> FORCE true
>> END
>> END
>>
>> Huub
>>
>>
>
>
More information about the MapServer-users
mailing list