<div>Hi Assefa,</div>
<div> </div>
<div>I have tried with a .map file, and the same symbol, and it works. But it doesn't work with the SLD. My goal is trying to make it work with the SLD. </div>
<div> </div>
<div>The picture is:</div>
<div> </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> </div>
<div>I'm also using pictures for filling polygons, for example:</div>
<div> </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> </div>
<div>The SLD is:</div>
<div> </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> </div>
<div>The URL to the capabilities is:</div>
<div> </div>
<div><a href="http://www.mirame.chduero.es/duerowfd?SERVICE=WFS&request=GetCapabilities&version=1.1.1">http://www.mirame.chduero.es/duerowfd?SERVICE=WFS&request=GetCapabilities&version=1.1.1</a></div>
<div> </div>
<div>Only the layers that are not using ExternalGraphic in the SLD will show transparent background. What is more, layers like "Regadios", that do not use pictures, but have a complex symbology, also don't show a transparent background.</div>
<div> </div>
<div>Please find attached some KMLs that show this behaviour:</div>
<div> </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> - small scale: triangles, no problems with transparency</div>
<div> - big scale: picture based symbol, problems with transparency</div>
<div> </div>
<div> </div>
<div>Any idea on how to solve this?</div>
<div> </div>
<div>Best Regards,</div>
<div> </div>
<div>Oscar</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> <br><br> </div>
<div><span class="gmail_quote">On 6/3/08, <b class="gmail_sendername">Yewondwossen Assefa</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:yassefa@dmsolutions.ca" target="_blank">yassefa@dmsolutions.ca</a>> 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> I'm having some trouble trying to use SLDs with MapServer.<br> I'm requesting maps from GoogleEarth using a NetworkLink object and a custom KML-WMS-KML parser.<br>
If I apply "simple" symbology through a custom SLD, it works, and the background of the map created by MapServer is transparent, so only the "vectors" are shown in GoogleEarth.<br> But if I use an SLD symbology using an external picture (<ExternalGraphic> 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>
<br></blockquote><br></span> ExternalGrapphic ends up being transformed into something like this in the map file:<br><br> - inline symbol:<br><br> SYMBOL<br> NAME "<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>"<br>
TYPE PIXMAP<br> IMAGE "f:/msapps/world_testdata/map/484599a6_1a28_1.gif"<br> GAP -20<br> TRANSPARENT 0<br> END<br><br> and a class<br><br> CLASS<br> NAME "Unknown"<br> STYLE<br> ANGLE 360<br>
COLOR 255 0 0<br> OPACITY 100<br> SIZE 10<br> SYMBOL "<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>"<br>
END<br><br><br> I am not sure I see the reason why this would affect the background transparency.<br><br> If possible can you add the symbol manually in the mapfile and see if you get the same transparency problem.<br>
<br> Do we have access to the external symbol you are using?<br><br> 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. 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> Thanks in advance,<br> 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: (613) 565-0925<br>----------------------------------------------------------------<br>
<br></blockquote></div><br><br clear="all"><br>