<div>Hi Assefa,</div>
<div>&nbsp;</div>
<div>I have tried with a .map file, and the same symbol, and it works. But it doesn&#39;t work&nbsp;with the SLD. My goal is trying to make it work with the SLD.&nbsp;</div>
<div>&nbsp;</div>
<div>The picture is:</div>
<div>&nbsp;</div>
<div><a href="http://www.mirame.chduero.es/DMADuero_09_Viewer/img/sld/dam.gif">http://www.mirame.chduero.es/DMADuero_09_Viewer/img/sld/dam.gif</a></div>
<div>&nbsp;</div>
<div>I&#39;m also using pictures for filling polygons, for example:</div>
<div>&nbsp;</div>
<div><a href="http://www.mirame.chduero.es/DMADuero_09_Viewer/img/sld/hatch45_palegreen.gif">http://www.mirame.chduero.es/DMADuero_09_Viewer/img/sld/hatch45_palegreen.gif</a></div>
<div>&nbsp;</div>
<div>The SLD is:</div>
<div>&nbsp;</div>
<div><a href="http://www.mirame.chduero.es/DMADuero_09_Viewer/wise.xml">http://www.mirame.chduero.es/DMADuero_09_Viewer/wise.xml</a></div>
<div>&nbsp;</div>
<div>The URL to the capabilities is:</div>
<div>&nbsp;</div>
<div><a href="http://www.mirame.chduero.es/duerowfd?SERVICE=WFS&amp;request=GetCapabilities&amp;version=1.1.1">http://www.mirame.chduero.es/duerowfd?SERVICE=WFS&amp;request=GetCapabilities&amp;version=1.1.1</a></div>
<div>&nbsp;</div>
<div>Only the layers that are not&nbsp;using&nbsp;ExternalGraphic in the SLD will show transparent background. What is more, layers like &quot;Regadios&quot;, that do not&nbsp;use pictures, but have a complex symbology,&nbsp;also don&#39;t show a transparent background.</div>

<div>&nbsp;</div>
<div>Please find attached some KMLs that show this behaviour:</div>
<div>&nbsp;</div>
<div>rios.kml : simple symbology, lines, no problem with transparency</div>
<div>mapa_lito.kml : complex polygon valuemaprenderer, homogeneous representation, no problem with transparency</div>
<div>regadios.kml : polygon valuemparenderer, heterogeneous symbols, problems with transparency</div>
<div>lics.kml : simple polygon symbol, fill based on a external image, problems with transparency</div>
<div>presas.kml : scale dependent renderer:</div>
<div>&nbsp;- small scale: triangles, no problems with transparency</div>
<div>&nbsp;- big scale: picture based symbol, problems with transparency</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Any idea on how to solve this?</div>
<div>&nbsp;</div>
<div>Best Regards,</div>
<div>&nbsp;</div>
<div>Oscar</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 6/3/08, <b class="gmail_sendername">Yewondwossen Assefa</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:yassefa@dmsolutions.ca" target="_blank">yassefa@dmsolutions.ca</a>&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi There,<span><br><br>Oscar Gomez wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi all!<br>&nbsp;I&#39;m having some trouble trying to use SLDs with MapServer.<br>&nbsp;I&#39;m requesting maps from GoogleEarth using a NetworkLink object and a custom KML-WMS-KML parser.<br>
&nbsp;If I apply &quot;simple&quot; symbology through a custom SLD, it works, and the background of the map created by MapServer is transparent, so only the &quot;vectors&quot; are shown in GoogleEarth.<br>&nbsp;But if I use an SLD symbology using an external picture (&lt;ExternalGraphic&gt; tag in SLD), then the background of the map created by MapServer is not transparent anymore. Then Google Earth shows a map with white background.<br>
&nbsp;<br></blockquote><br></span>&nbsp;ExternalGrapphic ends up being transformed into something like this in the map file:<br><br>&nbsp;- inline symbol:<br><br>&nbsp;SYMBOL<br>&nbsp; &nbsp;NAME &quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif" target="_blank">http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif</a>&quot;<br>
&nbsp; &nbsp;TYPE PIXMAP<br>&nbsp; &nbsp;IMAGE &quot;f:/msapps/world_testdata/map/484599a6_1a28_1.gif&quot;<br>&nbsp; &nbsp;GAP -20<br>&nbsp; &nbsp;TRANSPARENT 0<br>&nbsp;END<br><br>&nbsp;and a class<br><br>&nbsp;CLASS<br>&nbsp; &nbsp; &nbsp;NAME &quot;Unknown&quot;<br>&nbsp; &nbsp; &nbsp;STYLE<br>&nbsp; &nbsp; &nbsp; &nbsp;ANGLE 360<br>
&nbsp; &nbsp; &nbsp; &nbsp;COLOR 255 0 0<br>&nbsp; &nbsp; &nbsp; &nbsp;OPACITY 100<br>&nbsp; &nbsp; &nbsp; &nbsp;SIZE 10<br>&nbsp; &nbsp; &nbsp; &nbsp;SYMBOL &quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif" target="_blank">http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif</a>&quot;<br>
&nbsp; &nbsp; &nbsp;END<br><br><br>&nbsp;I am not sure I see the reason why this would affect the background transparency.<br><br>&nbsp;If possible can you add the symbol manually in the mapfile and see if you get the same transparency problem.<br>
<br>&nbsp;Do we have access to the external symbol you are using?<br><br>&nbsp;I am using the following external symbol in my test (<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif" target="_blank">http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif</a>) and I have tried used both agg and gd as a rendering settings and I did not see any effects on the background transparency. &nbsp; Note that I am using Mapserver from svn.<br>
<br><br>Best Regards,<br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span>Has anyone experienced the same? Can this be solved?<br>&nbsp;Thanks in advance,<br>&nbsp;Oscar<br><br><br></span>------------------------------------------------------------------------<br>
<br>_______________________________________________<br>mapserver-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote><br><br>
-- <br>----------------------------------------------------------------<br>Assefa Yewondwossen<br>Software Analyst<br><br>Email: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:assefa@dmsolutions.ca" target="_blank">assefa@dmsolutions.ca</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.dmsolutions.ca/" target="_blank">http://www.dmsolutions.ca/</a><br><br>Phone: (613) 565-5056 (ext 14)<br>Fax: &nbsp; (613) 565-0925<br>----------------------------------------------------------------<br>
<br></blockquote></div><br><br clear="all"><br>