Hello group,
can someone explain to me why this filter fails the validation? Something is
missing, but what should it look like?
My english is not the best, the specs i really don't understand (as there is
no example for PropertyIsNull).
<xsd:element name="PropertyIsNull"
type="ogc:PropertyIsNullType" substitutionGroup="ogc:comparisonOps"/>
i don't understand what substitutionGroup should be.
In sql the filter should be "WHERE typ = 'adm0' AND adm0_iso3166a2 IS NULL"
Thanks,
Frank
1: <?xml version="1.0" encoding="UTF-8"?>
2: <StyledLayerDescriptor version="1.0.0"
3: xsi:schemaLocation="http://www.opengis.net/sld
StyledLayerDescriptor.xsd"
4: xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
5: xmlns:xlink="http://www.w3.org/1999/xlink"
6: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
7:
8: <NamedLayer>
9: <Name>missing</Name>
10: <UserStyle>
11: <FeatureTypeStyle>
12: <Rule>
13: <ogc:Filter>
14: <ogc:And>
15: <ogc:PropertyIsEqualTo>
16: <ogc:PropertyName>typ</ogc:PropertyName>
17: <ogc:Literal>adm0</ogc:Literal>
18: </ogc:PropertyIsEqualTo>
19: <ogc:And>
20: <ogc:PropertyIsNull>
21: <ogc:PropertyName>adm0_iso3166a2</ogc:PropertyName>
22: </ogc:PropertyIsNull>
23: </ogc:And>
-------------------^
cvc-complex-type.2.4.b: The content of element 'ogc:And' is not
complete. One of '{"http://www.opengis.net/ogc":comparisonOps,
"http://www.opengis.net/ogc":spatialOps,
"http://www.opengis.net/ogc":logicOps\}' is expected.
24: </ogc:And>
25: </ogc:Filter>
26: <PolygonSymbolizer>
27: <Fill>
28: <CssParameter name="fill">#FF0000</CssParameter>
29: <CssParameter name="fill-opacity">1</CssParameter>
30: </Fill>
31: <Stroke>
32: <CssParameter name="stroke">#FF0000</CssParameter>
33: <CssParameter name="stroke-width">2</CssParameter>
34: </Stroke>
35: </PolygonSymbolizer>
36: </Rule>
37: </FeatureTypeStyle>
38: </UserStyle>
39: </NamedLayer>
40: </StyledLayerDescriptor>
--
View this message in context: http://www.nabble.com/Howto-setup-Filter-PropertyIsNull-tf2587452.html#a7214630
Sent from the GeoServer - User mailing list archive at Nabble.com.