How to set transparency and background color for WMS?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to set transparency and background color for WMS?

Dirk Jesko
Hello,

I have the following layer in a mapfile

  LAYER
      NAME "abc"
      TYPE RASTER
      STATUS ON
      CONNECTIONTYPE WMS
      CONNECTION "http://..."

      METADATA
        "ows_srs" "EPSG:31467"
        "ows_name" "..."
        "ows_format" "image/png"
        "ows_server_version" "1.1.1"
        "ows_bgcolor" "0xFF00FF"
        "ows_transparent" "FALSE"
      END
  END

I expect that the layer is drawn with a magenta background. Rather,
mapserver queries the WMS server with "TRANSPARENT=TRUE" and without
BGCOLOR. What is wrong with the layer definition? According to the
WMS-Client How-to it should work.

Kind regards,
Dirk