<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi,<br>
    ...<br>
    &nbsp;SYMBOL "<a moz-do-not-send="true"
      href="http://demo.mapserver.org/ogc-demos/etc/images/target-1.gif">http://demo.mapserver.org/ogc-demos/etc/images/target-1.gif</a>"
    should be valid and the would in effect download your symbol and use
    it for the fill.<br>
    <br>
    Here is a simple SLD I am using to do local tests and does seem to
    give expected result, Can you also try it? <br>
    <br>
    &lt;StyledLayerDescriptor
    version="1.0.0"&gt;&lt;NamedLayer&gt;&lt;Name&gt;province&lt;/Name&gt;&lt;UserStyle&gt;&lt;Title&gt;xxx&lt;/Title&gt;&lt;FeatureTypeStyle&gt;&lt;Rule&gt;&lt;PolygonSymbolizer&gt;&lt;Geometry&gt;&lt;PropertyName&gt;the_area&lt;/PropertyName&gt;&lt;/Geometry&gt;&lt;Fill&gt;&lt;CssParameter
    name="fill"&gt;#ff0000&lt;/CssParameter&gt;&lt;GraphicFill&gt;&lt;Graphic&gt;&lt;ExternalGraphic&gt;&lt;OnlineResource
    xlink:type="simple"
xlink:href=<a class="moz-txt-link-rfc2396E" href="http://demo.mapserver.org/ogc-demos/etc/images/target-1.gif">"http://demo.mapserver.org/ogc-demos/etc/images/target-1.gif"</a>/&gt;&lt;Format&gt;GIF&lt;/Format&gt;&lt;/ExternalGraphic&gt;&lt;Size&gt;10.0&lt;/Size&gt;&lt;/Graphic&gt;&lt;/GraphicFill&gt;&lt;/Fill&gt;&lt;/PolygonSymbolizer&gt;&lt;/Rule&gt;&lt;/FeatureTypeStyle&gt;&lt;/UserStyle&gt;&lt;/NamedLayer&gt;&lt;/StyledLayerDescriptor&gt;<br>
    <br>
    <br>
    Looking at the map file generated, I see a second style that seems
    to indicate a "stroke" element was given in the SLD to create an
    outline on the polygon. I tried to do the same and that gave me an
    issue where the 2nd style "hiding" the first style with what seems
    to be a white fill. I have raised this issue in
    <a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapserver/ticket/3891">http://trac.osgeo.org/mapserver/ticket/3891</a> and when fixed the map
    file given in your example should draw expected results.<br>
    <br>
    best regards,<br>
    <br>
    <br>
    &nbsp;<br>
    On 23/05/2011 12:02 PM, Debasish Sahu wrote:
    <blockquote
      cite="mid:BANLkTik5eAi+nKDZu=GZ10mTOoHwQ_TqgA@mail.gmail.com"
      type="cite">Hi,<br>
      <br>
      When I try to render a Polygon shapefile with a SLD file using the
      ExternalGraphic , the mapserver crashes. After investigating the
      cause by putting the DEBUG in map file and<br>
      analyzing the temporary map file that is created , it seems the
      SYMBOL , TYPE Pixmap tags are not getting created . Only the
      Symbol tag in the Layer&nbsp; is present.<br>
      The image file gets downloaded into the temp dir.<br>
      <br>
      Can someone please confirm it is a bug with the current trunk
      codebase ?<br>
      <br>
      LAYER<br>
      &nbsp;&nbsp;&nbsp; DATA "states"<br>
      &nbsp;&nbsp;&nbsp; METADATA<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wms_srs"&nbsp;&nbsp;&nbsp; "EPSG:4326"<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wms_title"&nbsp;&nbsp;&nbsp; "states"<br>
      &nbsp;&nbsp;&nbsp; END # METADATA<br>
      &nbsp;&nbsp;&nbsp; NAME "states"<br>
      &nbsp;&nbsp;&nbsp; PROJECTION<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:4326"<br>
      &nbsp;&nbsp;&nbsp; END # PROJECTION<br>
      &nbsp;&nbsp;&nbsp; STATUS ON<br>
      &nbsp;&nbsp;&nbsp; TILEITEM "location"<br>
      &nbsp;&nbsp;&nbsp; TYPE POLYGON<br>
      &nbsp;&nbsp;&nbsp; UNITS METERS<br>
      &nbsp;&nbsp;&nbsp; CLASS<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME "states"<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANGLE 0<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 0<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OFFSET 0 0<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 10<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL "<a moz-do-not-send="true"
        href="http://demo.mapserver.org/ogc-demos/etc/images/target-1.gif">http://demo.mapserver.org/ogc-demos/etc/images/target-1.gif</a>"<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END # STYLE<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANGLE 0<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OFFSET 0 0<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END # STYLE<br>
      &nbsp;&nbsp;&nbsp; END # CLASS<br>
      &nbsp; END # LAYER<br>
      <br clear="all">
      <br>
      -- <br>
      Thanks and Warm Regards<br>
      Debasish Sahu<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mapserver-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</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>