<!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>
    &nbsp;<br>
    &nbsp;I think you need to define WMS_SLD_SYMBOL_URL&nbsp; 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>&lt;Name&gt;test&lt;/Name&gt;</div>
          <div>&lt;ogc:Filter&gt;&lt;ogc:PropertyIsEqualTo&gt;&lt;ogc:PropertyName&gt;indicatif&lt;/ogc:PropertyName&gt;&lt;ogc:Literal&gt;1030050000&lt;/ogc:Literal&gt;&lt;/ogc:PropertyIsEqualTo&gt;&lt;/ogc:Filter&gt;</div>
          <div>&lt;MaxScaleDenominator&gt;40000.000000&lt;/MaxScaleDenominator&gt;</div>
        </div>
        <div>&lt;Graphic&gt;</div>
        <div>&lt;ExternalGraphic&gt;</div>
        <div>&lt;OnlineResource &nbsp;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>"/&gt;</div>
        <div>&lt;Format&gt;GIF&lt;/Format&gt;</div>
        <div>&lt;/ExternalGraphic&gt;</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>&nbsp;&nbsp; &nbsp;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>&nbsp;&nbsp; &nbsp;TYPE PIXMAP</div>
        <div>&nbsp;&nbsp; &nbsp;IMAGE "/srv/mapfile/ms_tmp/4cf56a54_49f8_1.gif"</div>
        <div>&nbsp;&nbsp; &nbsp;GAP -11</div>
        <div>&nbsp;&nbsp; &nbsp;TRANSPARENT 0</div>
        <div>&nbsp;&nbsp;END</div>
      </div>
      <div><br>
      </div>
      <div>
        <div>CLASS</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp;NAME "test"</div>
        <div>
          &nbsp;&nbsp; &nbsp; &nbsp;EXPRESSION ([indicatif] = 1030050000)</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp;MAXSCALEDENOM 40000</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp;STYLE</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;ANGLE 360</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;COLOR 0 0 0</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;SIZE 5.5</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;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>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;WIDTH 1</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp;END</div>
        <div>&nbsp;&nbsp; &nbsp;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>&lt;Name&gt;test&lt;/Name&gt;</div>
      <div>
        <div>&lt;ogc:Filter&gt;&lt;ogc:PropertyIsEqualTo&gt;&lt;ogc:PropertyName&gt;indicatif&lt;/ogc:PropertyName&gt;&lt;ogc:Literal&gt;1030050000&lt;/ogc:Literal&gt;&lt;/ogc:PropertyIsEqualTo&gt;&lt;/ogc:Filter&gt;</div>
        <div>&lt;MaxScaleDenominator&gt;40000.000000&lt;/MaxScaleDenominator&gt;</div>
        <div>&lt;PointSymbolizer&gt;</div>
        <div>&lt;/PointSymbolizer&gt;</div>
      </div>
      <div><br>
      </div>
      <div>Is it normal?&nbsp;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>