Worth asking - does it actually work on the map rendering?
The Validation engine seems to be very different from the actual map
renderer. What works in one may not in the other and vice-versa.
On 28 January 2013 18:04, ZvezdDochka <[email protected]> wrote:
> Hello!!
>
> I'm trying to use a vendor option called labelObstacle to avoid overlaping
> my "External Graphic" with labels.
> I was found this example in the official documentations:
>
> http://docs.geoserver.org/2.2.4/user/styling/sld-extensions/label-obstacles.html
> but it doesn't work..
>
> Validation failed with error:
> ine 20: cvc-complex-type.2.4.d: Invalid content was found starting with
> element 'VendorOption'. No child element is expected at this point.
>
> code:
> <?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>123</Name>
> <UserStyle>
> <FeatureTypeStyle>
> <Rule>
> <PointSymbolizer>
> <Graphic>
> <ExternalGraphic>
> <OnlineResource
> xlink:type="simple"
> xlink:href="smileyface.png" />
> <Format>image/png</Format>
> </ExternalGraphic>
> <Size>32</Size>
> </Graphic>
> <VendorOption name="labelObstacle">true</VendorOption>
> </PointSymbolizer>
> </Rule>
> </FeatureTypeStyle>
> </UserStyle>
> </NamedLayer>
> </StyledLayerDescriptor>
>
> Could you help me, please?? What i'm doing wrong?
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/Validation-failed-with-labelObstacle-PointSymbolizer-tp5030361.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> ________________________
_______________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
This transmission is intended for the named addressee(s) only and may contain
sensitive or protectively marked material up to RESTRICTED and should be
handled accordingly. Unless you are the named addressee (or authorised to
receive it for the addressee) you may not copy or use it, or disclose it to
anyone else. If you have received this transmission in error please notify the
sender immediately. All email traffic sent to or from us, including without
limitation all GCSX traffic, may be subject to recording and/or monitoring in
accordance with relevant legislation.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users