Hi, I try to setup this kind of style and receive the following error message every time:
Error message: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'ogc:Function'. One of '{"http://www.opengis.net/ogc":PropertyName}' is expected. org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'ogc:Function'. One of '{"http://www.opengis.net/ogc":PropertyName}' is expected. SLD: <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>StartEnd</Name> <UserStyle> <FeatureTypeStyle> <Rule> <LineSymbolizer> <Stroke></Stroke> </LineSymbolizer> <PointSymbolizer> <Geometry> <ogc:Function name="startPoint"> <ogc:PropertyName>the_geom</ogc:PropertyName> </ogc:Function> </Geometry> <Graphic> <Mark> <WellKnownName>square</WellKnownName> <Stroke> <CssParameter name="stroke">0x00FF00</CssParameter> <CssParameter name="stroke-width">1.5</CssParameter> </Stroke> </Mark> <Size>8</Size> </Graphic> </PointSymbolizer> </Rule> </FeatureTypeStyle> <FeatureTypeStyle> <Rule> <PointSymbolizer> <Geometry> <ogc:Function name="endPoint"> <ogc:PropertyName>the_geom</ogc:PropertyName> </ogc:Function> </Geometry> <Graphic> <Mark> <WellKnownName>circle</WellKnownName> <Fill> <CssParameter name="fill">0xFF0000</CssParameter> </Fill> </Mark> <Size>4</Size> </Graphic> </PointSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> What am I doing wrong? Thanks! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geometry-transformations-ready-to-roll-tp4083419p5015650.html Sent from the geotools-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel