[ka-Map-users] Help, I'm getting some image weirdness

Paul Spencer pspencer at dmsolutions.ca
Tue Apr 4 09:55:41 EDT 2006


I found I had to change it to 0.95 to get something that looked  
acceptable with the thicker casement roads which is why I was pushing  
for exposing hardness at the class level :)

Cheers

Paul

On 4-Apr-06, at 9:13 AM, Stephen Woodbridge wrote:

> Paul Spencer wrote:
>> 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.
>
> Yeah, I figured it out while I was sleeping that the problem was  
> that the map object has TRANSPARENCY ON so I can do the AA stuff.  
> Commenting out the two lines with transparency setting stuff in  
> tile.php fixed the problem.
>
> This issue should get fixed in tile.php maybe by setting some  
> metadata in the map object to control this.
>
>> Cheers
>> Paul
>> PS did you change the hardness factor for antialiasing?  what did  
>> you  change it to?
>
> I used the default and it looks very nice. have you gotten better  
> results by fiddling with the value?
>
> -Steve
>
>> 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/|
>> +-----------------------------------------------------------------+
>

+-----------------------------------------------------------------+
|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