Strange colors behavior
Sylvain Perrinel
sylvain.perrinel at AGRICULTURE.GOUV.FR
Thu Mar 30 00:37:47 PST 2006
I understand. Thanks.
Sean Gillies a écrit :
> On Mar 30, 2006, at 12:34 AM, Sylvain Perrinel wrote:
>
>> This is a multi-part message in MIME format.
>>
>> --Boundary_(ID_mpy39T624eCnTYq3FzSG2Q)
>> Content-type: text/plain; charset=ISO-8859-1; format=flowed
>> Content-transfer-encoding: 8BIT
>>
>> Hi list,
>> I have got a map which behave strangely.
>>
>> At full extent without label, the colors are correct. But if I put
>> labels on my map, the colors are strange (pink is grey, orange is
>> yellow, ...).
>>
>> And with labels, if I zoom in, the colors become standard. I display
>> only one layer with classes.
>>
>> I use Mapscript to make the mapfile and Mapserver 4.6.1 to generate the
>> images.
>>
>> Here is the mapfile :
>
> [snip]
>
> Sylvain,
>
> Antialiased TrueType labels will tend to use up all the available colors
> in a 256 color palette, leaving none left over for following layers.
> Switching to 24 bit PNG will help, or you can draw dummy layers in the
> map early in order to get important colors into the palette before the
> labels are rendered.
>
> cheers,
> Sean
>
> ---
> Sean Gillies
> http://zcologia.com
>
--
Sylvain Perrinel
Ministère de l'Agriculture et de la Pêche
SG/SM/SDSI/CERIT
Département d'Information Géographique (DIG)
BP 12668
31326 Castanet Tolosan
Téléphone: 05.61.28.92.76
Web : http://10.202.61.44/sigsiti/
More information about the MapServer-users
mailing list