How to set transparency and background color for WMS?

1 message Options
Embed this post
Permalink
Dirk Jesko

How to set transparency and background color for WMS?

Reply Threaded More More options
Print post
Permalink
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