From: Steven Campbell
Sent: 28 May 2013 14:39
To: ‘Edward Mac Gillavry’
Subject: RE: [Geoserver-users] Error with SLD styles
That’s perfect thank you, I had some other issues within the SLD, but this was the final one that was bugging me and this worked perfectly!
Thanks
Steve
From: Edward Mac Gillavry [mailto:emacgillavry@anonymised.com]
Sent: 24 May 2013 21:54
To: Steven Campbell; geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] Error with SLD styles
Steve,
The tag se:Graphic is not an empty element, but should simply wrap the full se:Mark tag. Hence:
se:PolygonSymbolizer
se:Fill
se:GraphicFill
se:Graphic
se:WellKnownNameline</se:WellKnownName>
se:Stroke
<se:SvgParameter name=“stroke”>#ff55ff</se:SvgParameter>
</se:Stroke>
</se:Mark>
</se:Graphic>
</se:GraphicFill>
</se:Fill>
se:Stroke
<se:SvgParameter name=“stroke”>#ff55ff</se:SvgParameter>
<se:SvgParameter name=“stroke-width”>0.7</se:SvgParameter>
</se:Stroke>
</se:PolygonSymbolizer>
HTH
Kind regards,
Edward
Date: Fri, 24 May 2013 17:54:57 +0100
From: s.campbell@anonymised.com
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Error with SLD styles
Hi
I’ve just uploaded an SLD file from QGIS to Geoserver and I’m getting the following error:
line 221: cvc-complex-type.2.4.d: Invalid content was found starting with element ‘se:Mark’. No child element is expected at this point.
I’ve done a little digging around and I think it’s something to do with needing to include a maxOccurs = “unbounded” into the SLD, but I have no idea where. Below is a sample where it is failing.
se:PolygonSymbolizer
se:Fill
se:GraphicFill
se:Graphic/
<se:Mark maxOccurs=“unbounded”>
se:WellKnownNameline</se:WellKnownName>
se:Stroke
<se:SvgParameter name=“stroke”>#ff55ff</se:SvgParameter>
</se:Stroke>
</se:Mark>
</se:GraphicFill>
</se:Fill>
se:Stroke
<se:SvgParameter name=“stroke”>#ff55ff</se:SvgParameter>
<se:SvgParameter name=“stroke-width”>0.7</se:SvgParameter>
</se:Stroke>
</se:PolygonSymbolizer>
Any help would be great.
Thanks
Steve
Steve Campbell
GIS Manager
Corporate Strategy and Communications
Borough of Poole | Civic Centre | Poole BH15 2RU
Tel: 01202 633 362
Email: s.campbell@anonymised.com607…
Website:www.boroughofpoole.com
Think Green! Please Recycle
DISCLAIMER:
This email and any files transmitted with it may be confidential, legally privileged and protected in law and are intended solely for the use of the individual to whom it is addressed. The copyright in all documentation is the property of the Borough of Poole and this email and any documentation must not be copied or used other than as strictly necessary for the purpose of this email, without prior written consent which may be subject to conditions. Any view or opinions presented are solely those of the author and do not necessarily represent those of the Borough of Poole. The Borough of Poole reserves the right to inspect incoming and outgoing emails. If you have received this email in error please contact the sender by return and confirm that its contents have been destroyed. Telephone enquiries should be directed to the Borough switchboard on 01202 633633.
------------------------------------------------------------------------------ Try New Relic Now & We’ll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________ Geoserver-users mailing list Geoserver-users@anonymised.comists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
DISCLAIMER:
This email and any files transmitted with it may be confidential, legally privileged and protected in law and are intended solely for the use of the individual to whom it is addressed. The copyright in all documentation is the property of the Borough of Poole and this email and any documentation must not be copied or used other than as strictly necessary for the purpose of this email, without prior written consent which may be subject to conditions. Any view or opinions presented are solely those of the author and do not necessarily represent those of the Borough of Poole. The Borough of Poole reserves the right to inspect incoming and outgoing emails. If you have received this email in error please contact the sender by return and confirm that its contents have been destroyed. Telephone enquiries should be directed to the Borough switchboard on 01202 633633.