Colors, PNGs

Frieso ter Haseborg ter-haseborg at SF-DATENTECHNIK.DE
Mon Sep 6 06:44:50 PDT 2004


Hi,

looks like the ortho images consume the whole palette, you could try to reduce this effect by using the processing parameter on the ortho-layer.

LAYER
   NAME "ortho"
   TYPE RASTER
   PROCESSING 'COLOR_MATCH_THRESHOLD=3'
   [...]

Start with a setting of 3 and increase this value until it fits your needs.

hth,
 
Frieso ter Haseborg
- Software Development - 
 
--

-------------------------------------------------- 
S&F Datentechnik GmbH&Co.KG 
Reimersstr. 41b 
26789 Leer, Germany



> -----Original Message-----
> From: Titus von der Malsburg [mailto:malsburg at CL.UNI-HEIDELBERG.DE]
> Sent: Monday, September 06, 2004 1:28 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] Colors, PNGs
> 
> 
> Hi,
> 
> I have a problem with colors in maps rendererd by Mapserver when using
> png as the outputformat.  I have two layers: a raster layer with
> black&white ortho imagery and a shape showing buildings in different
> colors.  The layers a look as expected when rendered
> individually.  See:
> 
>  * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv03.png
>  * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv01.png
> 
> But if I switch them both on, it looks like
> 
>  * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv02.png
> 
> Everything is black&white.  The problem does only appear with
> outputformat set to png.
> 
> Does anyone know how to solve this problem?
> 
> Thanks,
>         Titus
> 
> $ mapserv -v
> MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
> SUPPORTS=PROJ
> SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7
> INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
> 
> On Debian unstable.
> 
> 



More information about the MapServer-users mailing list