<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Martin,<br>
<br>
I think you need to define WMS_SLD_SYMBOL_URL to be able to
generate an External graphic. This is documented (almost hidden :)
in <a class="moz-txt-link-freetext" href="http://mapserver.org/ogc/sld.html#client-side-support">http://mapserver.org/ogc/sld.html#client-side-support</a><br>
<br>
best regards,<br>
<br>
On 30/11/2010 5:01 PM, Martin Ouellet wrote:
<blockquote
cite="mid:AANLkTimxXYEh0VwYVjrDRgH=J3g5Q_fU6opCqE5zw4Vs@mail.gmail.com"
type="cite">Hi,
<div><br>
</div>
<div>When I used a external graphic element in a SLD like this:</div>
<div>
<div>
<div><Name>test</Name></div>
<div><ogc:Filter><ogc:PropertyIsEqualTo><ogc:PropertyName>indicatif</ogc:PropertyName><ogc:Literal>1030050000</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter></div>
<div><MaxScaleDenominator>40000.000000</MaxScaleDenominator></div>
</div>
<div><Graphic></div>
<div><ExternalGraphic></div>
<div><OnlineResource xmlns:xlink="<a moz-do-not-send="true"
href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>"
xlink:type="simple" xlink:href="<a moz-do-not-send="true"
href="http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif">http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif</a>"/></div>
<div><Format>GIF</Format></div>
<div></ExternalGraphic></div>
</div>
<div><br>
</div>
<div>Then I used the temporary mapfile generated by the call to
define the same symbology but in my mapfile.</div>
<div>
<div>
SYMBOL</div>
<div> NAME "<a moz-do-not-send="true"
href="http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif">http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif</a>"</div>
<div> TYPE PIXMAP</div>
<div> IMAGE "/srv/mapfile/ms_tmp/4cf56a54_49f8_1.gif"</div>
<div> GAP -11</div>
<div> TRANSPARENT 0</div>
<div> END</div>
</div>
<div><br>
</div>
<div>
<div>CLASS</div>
<div> NAME "test"</div>
<div>
EXPRESSION ([indicatif] = 1030050000)</div>
<div> MAXSCALEDENOM 40000</div>
<div> STYLE</div>
<div> ANGLE 360</div>
<div> COLOR 0 0 0</div>
<div> SIZE 5.5</div>
<div> SYMBOL "<a moz-do-not-send="true"
href="http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif">http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif</a>"</div>
<div> WIDTH 1</div>
<div> END</div>
<div> END</div>
</div>
<div><br>
</div>
<div>Question: Finally, I would like to expose this symbology
through the GetStyles() method but it seem to be completely
ignored?</div>
<div><Name>test</Name></div>
<div>
<div><ogc:Filter><ogc:PropertyIsEqualTo><ogc:PropertyName>indicatif</ogc:PropertyName><ogc:Literal>1030050000</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter></div>
<div><MaxScaleDenominator>40000.000000</MaxScaleDenominator></div>
<div><PointSymbolizer></div>
<div></PointSymbolizer></div>
</div>
<div><br>
</div>
<div>Is it normal? Thank you in advance!</div>
<div>MartinO</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: <a class="moz-txt-link-abbreviated" href="mailto:yassefa@dmsolutions.ca">yassefa@dmsolutions.ca</a>
<a class="moz-txt-link-freetext" href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</a>
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
</pre>
</body>
</html>