Just wondering: did you reference the xlink namespace in the
StyledLayerDescriptor tag of the SLD file? Like so:
<StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
I 've also attached a small snippet of an SLD that uses an external graphic.
Rrgards,
Edward
Date: Fri, 16 Dec 2011 11:10:42 -0500
From: [email protected]
To: [email protected]
Subject: [Geoserver-users] SLD XML Formatting <OnlineResource>
Noob here...
Trying to define a style with a multitude rules and symbols I've designed as
PNG files. I have the following in my XML within the ExternalGraphic tag:
<OnlineResource xlink:type="simple" xlink:href="deldot/relamp.png" />
<Format>image/png</Format>
Taken almost directly from GS Docs.
Cannot get the XML to validate, returns the following...
"org.xml.sax.SAXParseException: The prefix "xlink" for attribute "xlink:type"
associated with an element type "OnlineResource" is not bound."
Im at a loss.
Thanks for any help!
--
Jason M. Wheatley, GISP
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
<NamedLayer>
<Name>Landuse</Name>
<UserStyle>
<Title>Visualisation of landuse</Title>
<Abstract>This stylesheet contains all rules to visualise landuse</Abstract>
<FeatureTypeStyle>
<Rule>
<Title>Orchard</Title>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>tdn_code</ogc:PropertyName>
<ogc:Literal>5223</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<MinScaleDenominator>12000</MinScaleDenominator>
<MaxScaleDenominator>75000</MaxScaleDenominator>
<PolygonSymbolizer>
<Fill>
<GraphicFill>
<Graphic>
<ExternalGraphic>
<OnlineResource
xlink:type="simple"
xlink:href="/usr/appl/geoserver/data/symbols/orchard.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>16</Size>
</Graphic>
</GraphicFill>
</Fill>
<Stroke>
<CssParameter name="stroke">#c9eb70</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users