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

Reply via email to