[mapserver-users] MapCache and a transparent layer
Evans, James R Civ USAF ACC 84 RADES/SCZE
James.Evans at hill.af.mil
Sat Nov 2 08:01:08 PDT 2013
Hi,
If I select the "States" layer, I see the borders in blue, with red labals for the states, over a white background. I see the same thing if I remove the <TRANSPARENT> tag. I checked the xml file that is stored in my client cache, and it is virtually identical whether I'm hitting the mapcache or going to the WMS directly.
-----Original Message-----
From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us]
Sent: Sat 11/2/2013 7:27 AM
To: Evans, James R Civ USAF ACC 84 RADES/SCZE; mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] MapCache and a transparent layer
What do you see if you use the MapCache demo? E.g. http://myserver/mapcache/demo
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of James_in_Utah [James.Evans at hill.af.mil]
Sent: Friday, November 01, 2013 9:58 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] MapCache and a transparent layer
Hi,
I'm trying to get mapchache working, and I have one layer that I can not
figure out. I have a states boundaries layer, all vector data, and it works
fine when reading from the WMS. I added it as a layer in my mapcache.xml,
and I can not get it to be transparent. I've added
<TRANSPARENT>true</TRANSPARENT> to the params in the source. If I look at
the .png files that are stored in the cache, they appear to be transparent,
but when my client tries to display the boundaries, they have a black
background and obscure the other layers. If I look in the cache of my
client, at the.dds files that it saves, they all have a black background.
If I look at the.dds files the client saves when hitting the WMS directly,
they appear to have a transparent background. Below are my source, and
tileset from the mapcache.xml. Any help on this would be appreciated.
Thanks!
James
<source name="RADESWMS States" type="wms">
<http>
<url>http://127.0.0.1/cgi-bin/radeswms.exe</url>
</http>
<getmap>
<params>
<FORMAT>image/png</FORMAT>
<LAYERS>States</LAYERS>
<TRANSPARENT>true</TRANSPARENT>
</params>
</getmap>
</source>
<tileset name="States">
<source>RADESWMS States</source>
<cache>disk</cache>
<format>PNG_FAST</format>
<grid>WGS84</grid>
</tileset>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/MapCache-and-a-transparent-layer-tp5087059.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list