[mapserver-users] MapCache and a transparent layer

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Sat Nov 2 06:27:36 PDT 2013


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