[ka-Map-users] Antialiasing - Transparency problem, Labels are messed

Paul Spencer pspencer at dmsolutions.ca
Tue Jun 20 08:05:07 EDT 2006


The solution is stunningly simple :)

IMAGECOLOR 254 254 254

Cheers

Paul

On 20-Jun-06, at 4:55 AM, Volkan Ulukut wrote:

>
>
> Hey List;
>
> I’m having this problem: http://lists.maptools.org/pipermail/ka-map- 
> users/2006-April/001247.html
>
> When I set ANTIALIAS ON with a black font label and a red polygon  
> layer under it the labels can’t be read at all as you can see on  
> the attachment.
>
> I tried commenting transperancy related codes in tile.php but it  
> get worse (bgcolor turned to grey). Here are related mapfile lines:
>
>
>
> […]
>
> IMAGETYPE PNG
>
> IMAGECOLOR 255 255 255
>
> […]
>
>
>
> OUTPUTFORMAT
>
>     NAME "png"
>
>     MIMETYPE "image/png"
>
>     DRIVER "GD/PNG"
>
>     EXTENSION "png"
>
>     IMAGEMODE PC256
>
>     TRANSPARENT ON
>
>   END
>
> […]
>
>
>
> LAYER
>
>   NAME "avrupa"
>
>   TYPE POLYGON
>
>   STATUS ON
>
>   CONNECTIONTYPE OGR
>
>   CONNECTION "avrupa.ovf"
>
>   LABELITEM "Name"
>
>   GROUP "gavrupa"
>
>    METADATA
>
>      "queryable" "true"
>
>              "searchfield" "name"
>
>    END
>
>   DATA "avrupa"    CLASS
>
>       NAME "avrupa"
>
>       STYLE
>
>         SYMBOL 0
>
>         COLOR 240 0 0
>
>         OUTLINECOLOR 33 45 125
>
>         SIZE 2
>
>         MINSIZE 1
>
>         MAXSIZE 100
>
>       END
>
>      LABEL
>
>         TYPE TRUETYPE
>
>         FONT "fritqat"
>
>         SIZE 8
>
>         MINSIZE 4
>
>         MAXSIZE 256
>
>         POSITION AUTO
>
>         OFFSET 0 0
>
>         ANGLE 0.000000
>
>         BUFFER 0
>
>         MINDISTANCE -1
>
>         MINFEATURESIZE -1
>
>         COLOR 0 0 0
>
>         OUTLINECOLOR 255 255 255
>
>         ANTIALIAS TRUE
>
>         PARTIALS FALSE
>
>         FORCE FALSE
>
>         ENCODING "ISO-8859-9"
>
>      END
>
>     END
>
> END
>
>
>
>
>
> LAYER
>
>   NAME "istroad"
>
>   TYPE LINE
>
>   STATUS ON
>
>   CONNECTIONTYPE OGR
>
>   CONNECTION "istroad.ovf"
>
>   LABELITEM "ad"
>
>   LABELMAXSCALE 15000
>
>   GROUP "gistroad"
>
>   METADATA
>
>      "queryable" "true"
>
>              "searchfield" "ad"
>
>    END    CLASS
>
>       NAME "ist"
>
>       STYLE
>
>         SYMBOL 0
>
>         COLOR 0 0 0
>
>         OUTLINECOLOR 0 50 40
>
>         SIZE 2
>
>         MINSIZE 1
>
>         MAXSIZE 100
>
>       END
>
>      LABEL
>
>         TYPE TRUETYPE
>
>         FONT "fritqat-italic"
>
>         SIZE 7
>
>         MINSIZE 4
>
>         MAXSIZE 256
>
>         POSITION AUTO
>
>         OFFSET 0 0
>
>         ANGLE AUTO
>
>         BUFFER 0
>
>         MINDISTANCE -1
>
>         MINFEATURESIZE -1
>
>         COLOR 0 0 0
>
>         OUTLINECOLOR 255 255 255
>
>         ANTIALIAS TRUE
>
>         PARTIALS FALSE
>
>         FORCE FALSE
>
>         ENCODING "ISO-8859-9"
>
>      END
>
>     END
>
> END
>
>
>
> Basically 2 Layers one of them creates polygons filled with red  
> color and second layer is a road map consists of simple lines.  
> First layer has its labels shown pretty good but second layer shows  
> as in the attachment. I can see that the problem is transperancy  
> but I’m unable to figure out a solution.
>
> <messedlabels.PNG>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+







More information about the ka-Map-users mailing list