[ka-Map-users] Help, I'm getting some image weirdness
Paul Spencer
pspencer at dmsolutions.ca
Tue Apr 4 07:49:35 EDT 2006
Steve,
I had the same problem. It turns out that the tiling code in
tile.php tries to allocate a transparent colour from the background
color of the mapfile. When tile.php loads/slices/saves the tiles,
some portion of the text becomes transparent resulting in this
effect. Try changing your background color in your map file or (if
you are not using groups) removing the line that assigns a
transparent colour index.
Cheers
Paul
PS did you change the hardness factor for antialiasing? what did you
change it to?
On 3-Apr-06, at 11:15 PM, Stephen Woodbridge wrote:
> Hi Paul, et al,
>
> I am getting some serious image weirdness in ka-map. The image as
> compared to that generated by /cgi-bin/mapserv is nice and clean
> but the ka-map generated images have serious problems with the
> labels an maybe other stuff.
>
> cgi-bin version:
>
> MapServer version 4.9 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=THREADS
> INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE DEBUG=MSDEBUG
>
>
> php version:
>
> MapServer Version MapServer version 4.9 OUTPUT=GIF OUTPUT=PNG
> OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE
> SUPPORTS=THREADS INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS
> INPUT=SHAPEFILE DEBUG=MSDEBUG
> PHP MapScript Version ($Revision: 1.246 $ $Date: 2006/02/26
> 18:09:47 $)
>
> I have attached some tile samples. These are both being generated
> using the same mapfile and at the same scale. The scale breaks are
> not near the scales so it is not a problem of rounding of the scale
> causing different classes/layers to be applied.
>
> OUTPUTFORMAT
> NAME PNG8
> DRIVER "GD/PNG"
> EXTENSION "png"
> MIMETYPE "image/png"
> IMAGEMODE RGBA
> TRANSPARENT OFF
> FORMATOPTION "QUANTIZE_FORCE=ON"
> FORMATOPTION "QUANTIZE_DITHER=ON"
> FORMATOPTION "QUANTIZE_COLORS=256"
> END
>
> I get the same results with "QUANTIZE_DITHER=OFF"
>
> I'm totally at a loss to fix this and need ti for a show on
> Wednesday. So any help would be appreciated.
>
> -Steve
> <tile-1.php>
> <mapserv-cgi.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