<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="searchable">
<p>Hi,
</p>
<p>
I have some troubles using AGG with cascaded WMS.
</p>
<p>
I have my first mapfile that exposes WMS layers (<a class="wiki"
 href="http://trac.osgeo.org/mapserver/wiki/MapServer">MapServer</a> is
used as a WMS server and a WMS client): refs.map<br>
I have a second mapfile that contains a Postgis layer (this mapfile
uses only <a class="wiki"
 href="http://trac.osgeo.org/mapserver/wiki/MapServer">MapServer</a> as
WMS server): roads.map<br>
I'm using <a class="wiki"
 href="http://trac.osgeo.org/mapserver/wiki/MapServer">MapServer</a>
5.6.0 beta 3 on Debian (to avoid WFS requests issues with the following
versions cf. <a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapserver/ticket/4073">http://trac.osgeo.org/mapserver/ticket/4073</a>).<br>
I advertise raster formats with "wms_getmap_formatlist". I define
image/png to use AGG driver.<br>
I can get nice PNG with AGG when I request directly my second mapfile
roads.map (using mapserver only as WMS server).<br>
But if I request my first mapfile refs.map (that requests my second
mapfile using <a class="wiki"
 href="http://trac.osgeo.org/mapserver/wiki/MapServer">MapServer</a> as
WMS client. This is the WMS cascade), I get PNG with bad aliasing (AGG
does not seem to be used!).<br>
I looked at the mapserv.log (for the WMS/GetMap that requests the
cascaded WMS) and I saw :
"msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,4"<br>
Does "msDrawGDAL" meen that DGAL driver is used instead of AGG driver ?<br>
</p>
<p>Thanks for your reply.<br>
Laurent<br>
</p>
<p><br>
An extract of my first mapfile (refs.map):
"MAP
...
</p>
<blockquote>
  <blockquote>
  </blockquote>
  <blockquote>
    <blockquote>
    </blockquote>
  </blockquote>
  <blockquote>
    <blockquote>
    </blockquote>
  </blockquote>
  <p>
OUTPUTFORMAT<br>
    NAME "PNG"<br>
    DRIVER "AGG/PNG"<br>
    MIMETYPE "image/png"<br>
    IMAGEMODE RGBA<br>
    TRANSPARENT ON<br>
END<br>
...
  <br>
WEB<br>
    ...<br>
    METADATA<br>
    ...<br>
    "wms_getmap_formatlist" "image/png,image/jpg,image/jpeg"<br>
    END<br>
END<br>
LAYER<br>
    NAME "my_layer"
...
CONNECTIONTYPE WMS
"<a class="ext-link"
 href="http://my_domain/cgi-bin/mapserv?map=/my_path/roads.map"><span
 class="icon"> </span>http://my_domain/cgi-bin/mapserv?map=/my_path/roads.map</a>"<br>
    ...<br>
    METADATA<br>
       "wms_name" "my_roads"<br>
       "wms_server_version" "1.1.1"<br>
       "wms_format" "image/png"<br>
       ...<br>
    END<br>
END
...
  </p>
</blockquote>
<p>
An extract of my second mapfile (roads.map) :
MAP
...
</p>
<blockquote>
OUTPUTFORMAT<br>
    NAME "PNG"<br>
    DRIVER "AGG/PNG"<br>
    MIMETYPE "image/png"<br>
    IMAGEMODE RGBA<br>
    TRANSPARENT ON<br>
END...
  <br>
WEB<br>
    METADATA<br>
    ...<br>
    "wms_getmap_formatlist" "image/png,image/jpg,image/jpeg"<br>
    END<br>
END<br>
LAYER<br>
    NAME "my_roads"
...
CONNECTIONTYPE postgis<br>
    ...<br>
END<br>
</blockquote>
<p>
I'm not sure that this behavior should be different with mapserver
6.0...
</p>
<p>
NB: I've already post this message on Tue, 27 Apr 2010 in the mailing
list, but no reply... ;-(
</p>
</div>
</body>
</html>