<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19154">
</head>
<body bgcolor="#ffffff" text="#000000">
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="394303714-26012012">Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="394303714-26012012"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="394303714-26012012">It would help if you could send:</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="394303714-26012012">- The WMS GetMap request you are using to reach the WMS server number one (the one with refs.map)</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="394303714-26012012">- The image you are getting with bad aliasing</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="394303714-26012012">- Corresponding GetMap request that the first WMS is making&nbsp;for the second WMS with roads.map. You will find it from the access.log file</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="394303714-26012012">- Image captured with the above GetMap from the second WMS.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="394303714-26012012"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="394303714-26012012"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="394303714-26012012">-Jukka Rahkonen-</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="394303714-26012012"></span></font>&nbsp;</div>
<br>
<blockquote style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" dir="ltr">
<div dir="ltr" lang="fi" class="OutlookMessageHeader" align="left">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>Lähettäjä:</b> mapserver-users-bounces@lists.osgeo.org [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>Puolesta </b>SAEZ Laurent - SG/SPSSI/CPII/DOM/ETER/PNE IG<br>
<b>Lähetetty:</b> 26. tammikuuta 2012 15:18<br>
<b>Vastaanottaja:</b> mapserver-users@lists.osgeo.org<br>
<b>Aihe:</b> [mapserver-users] MapServer seems to always use GDAL driver with cascaded WMS (instead of AGG)<br>
</font><br>
</div>
<div></div>
<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 &quot;wms_getmap_formatlist&quot;. 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 : &quot;msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,4&quot;<br>
Does &quot;msDrawGDAL&quot; 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): &quot;MAP ... </p>
<blockquote>
<blockquote></blockquote>
<blockquote>
<blockquote></blockquote>
</blockquote>
<blockquote>
<blockquote></blockquote>
</blockquote>
<p>OUTPUTFORMAT<br>
&nbsp;&nbsp;&nbsp; NAME &quot;PNG&quot;<br>
&nbsp;&nbsp;&nbsp; DRIVER &quot;AGG/PNG&quot;<br>
&nbsp;&nbsp;&nbsp; MIMETYPE &quot;image/png&quot;<br>
&nbsp;&nbsp;&nbsp; IMAGEMODE RGBA<br>
&nbsp;&nbsp;&nbsp; TRANSPARENT ON<br>
END<br>
... <br>
WEB<br>
&nbsp;&nbsp;&nbsp; ...<br>
&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp; ...<br>
&nbsp;&nbsp;&nbsp; &quot;wms_getmap_formatlist&quot; &quot;image/png,image/jpg,image/jpeg&quot;<br>
&nbsp;&nbsp;&nbsp; END<br>
END<br>
LAYER<br>
&nbsp;&nbsp;&nbsp; NAME &quot;my_layer&quot; ... CONNECTIONTYPE WMS &quot;<a class="ext-link" href="http://my_domain/cgi-bin/mapserv?map=/my_path/roads.map"><span class="icon">&nbsp;</span>http://my_domain/cgi-bin/mapserv?map=/my_path/roads.map</a>&quot;<br>
&nbsp;&nbsp;&nbsp; ...<br>
&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_name&quot; &quot;my_roads&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_server_version&quot; &quot;1.1.1&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_format&quot; &quot;image/png&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br>
&nbsp;&nbsp;&nbsp; END<br>
END ... </p>
</blockquote>
<p>An extract of my second mapfile (roads.map) : MAP ... </p>
<blockquote>OUTPUTFORMAT<br>
&nbsp;&nbsp;&nbsp; NAME &quot;PNG&quot;<br>
&nbsp;&nbsp;&nbsp; DRIVER &quot;AGG/PNG&quot;<br>
&nbsp;&nbsp;&nbsp; MIMETYPE &quot;image/png&quot;<br>
&nbsp;&nbsp;&nbsp; IMAGEMODE RGBA<br>
&nbsp;&nbsp;&nbsp; TRANSPARENT ON<br>
END... <br>
WEB<br>
&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp; ...<br>
&nbsp;&nbsp;&nbsp; &quot;wms_getmap_formatlist&quot; &quot;image/png,image/jpg,image/jpeg&quot;<br>
&nbsp;&nbsp;&nbsp; END<br>
END<br>
LAYER<br>
&nbsp;&nbsp;&nbsp; NAME &quot;my_roads&quot; ... CONNECTIONTYPE postgis<br>
&nbsp;&nbsp;&nbsp; ...<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>
</blockquote>
</body>
</html>