<!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>
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>
<StyledLayerDescriptor
version="1.0.0"><NamedLayer><Name>province</Name><UserStyle><Title>xxx</Title><FeatureTypeStyle><Rule><PolygonSymbolizer><Geometry><PropertyName>the_area</PropertyName></Geometry><Fill><CssParameter
name="fill">#ff0000</CssParameter><GraphicFill><Graphic><ExternalGraphic><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>/><Format>GIF</Format></ExternalGraphic><Size>10.0</Size></Graphic></GraphicFill></Fill></PolygonSymbolizer></Rule></FeatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor><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>
<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 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>
DATA "states"<br>
METADATA<br>
"wms_srs" "EPSG:4326"<br>
"wms_title" "states"<br>
END # METADATA<br>
NAME "states"<br>
PROJECTION<br>
"init=epsg:4326"<br>
END # PROJECTION<br>
STATUS ON<br>
TILEITEM "location"<br>
TYPE POLYGON<br>
UNITS METERS<br>
CLASS<br>
NAME "states"<br>
STYLE<br>
ANGLE 0<br>
COLOR 255 0 0<br>
OFFSET 0 0<br>
SIZE 10<br>
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>
END # STYLE<br>
STYLE<br>
ANGLE 0<br>
OFFSET 0 0<br>
OUTLINECOLOR 0 0 0<br>
END # STYLE<br>
END # CLASS<br>
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>