change colors of raster images in mapfile

Flavio Hendry flavio at TYDAC.CH
Wed Dec 7 07:09:57 EST 2005


Hi Frank

example (this is with an 8bit raster, EXPRESSION refers to the color 
number). makes not to much sense to me on an 24bit raster:

	LAYER
		NAME "pk25"
		MINSCALE 0
		MAXSCALE 10000
		TYPE RASTER
		STATUS OFF
		TILEINDEX "../swisstopo/pk25"
		TILEITEM "LOCATION"
		TEMPLATE ttt.htm
		  CLASS 
		    NAME "Weisser Hintergrund"
		    EXPRESSION "1"
		    COLOR 255 255 255
		  END 
		
		  CLASS 
		    NAME "Waldfläche"
		    EXPRESSION "2"
		    COLOR 197 230 189
		  END 


Mit freundlichem Gruss / Best Regards
Flavio Hendry

----------------------------------------------------------------
TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual
----------------------------------------------------------------
############      Mit freundlichen Gruessen / Kind Regards
############             mailto:flavio at tydac.ch
############         TYDAC AG - http://www.tydac.ch
####    ####        Geographic Information Solutions
####    ####         Luternauweg 12 -- CH-3006 Bern
############   Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860
----------------------------------------------------------------


-----Original Message-----
From: Frank Rittinger <gis at SCHNEGG.NET>
To: MAPSERVER-USERS at LISTS.UMN.EDU
Date: Wed, 7 Dec 2005 11:06:53 +0100
Subject: [UMN_MAPSERVER-USERS] change colors of raster images in mapfile

> Hello list,
> 
> I have two b/w raster layers in a mapfile and would like to change
> the 
> foreground color of one of them from black to blue.
> 
> If I add class entries to the layers, both layers get displayed in
> the 
> same color.
> 
> After reading the raster howto, I got the impression that that's the 
> normal behavior because the same color in all images gets the same
> new 
> rgb value. Is this connected to color bands?
> 
> Any hints are welcomed,
> 
> regards
> 
> Frank Rittinger



More information about the mapserver-users mailing list