[Tilecache] How to use watermarkImage ?

Arnaud Vandecasteele arnaud.sig at gmail.com
Fri Aug 29 00:42:57 EDT 2008


Hello,

It's been two weeks that i'm trying to use the watermarkImage properties.
Everythings work fine since i want to use the watermarkImage properties. I
use tileCache in mod python with python-imaging.

When i specify the extension properties as PNG tile Cache send me only some
pink tiles. And when i change it for 'jpg' or 'gif' i've got no pink tiles
but instead of i've got my image defined in the watermarkImage properties.
I'm really near of the result that i want... But (yes they are always a but
if i use 'jpg' or 'gif' my background can't be transparent. It's in the same
color of the background mapfile.

Here it's my tilecache.cfg :

##############################
###############################
#Configuration Routes
[fondRoutesRTD]
type=WMSLayer
url=http://localhost/cgi-bin/mapserv?map=/var/www/html/mapserver/rdt.map
bbox=55.185611724,-21.415085482499997,55.867049316,-20.8459795275
layers=rlocal,rdep,rprinc
srs=EPSG:4326
extent_type=loose
resolutions=0.0013309327968750034,0.0006654663984375017,0.00033273319921875086,0.00016636659960937543,0.00008318329980468771,0.00004159164990234386,0.00002079582495117193,0.000010397912475585964,0.000005198956237792982,0.000002599478118896491
levels=10
extension=jpg
metaTile=true
metaBuffer=20
watermarkImage=/var/www/html/tilecache/philigrane2_.png
#############################################################



So my question it's how to use  watermarkImag with a transparent background?
I made some print screen to help you to understand, my english could be
better and it's a little bit difficult to explain.

The first picturre is my map with the waterMark layers :
http://imagik.fr/view-rl/97501
The second picture is my map without  the waterMark layers  :
http://imagik.fr/view-rl/97500

Thanks for your help, i hope you will find a solution.

Regards

Arnaud


-- 
--------------------------------------------------------------------
Van De Casteele Arnaud
72 Rue de la colline des camélias 97400 Saint-Denis
0262 30 67 79 - 0692 23 73 17
SIG - WebMapping - GPS embarqué
Site internet : http://cataloguesig.c-webhosting.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20080829/9786f4e2/attachment.html


More information about the Tilecache mailing list