Hi Bino
Maybe it will work if you change
'ogc:PropertyIsEqualsTo'
to
'ogc:PropertyIsEqualTo' (that is you remove the 's' from equal.
I am not sure about stacking all the literals so leave that to others.
regards
David Hine
Land and Water Management
T: (07) 4015 3470
M: 0429 886 146
F: (07) 4088 6146
www.landandwater.com.au
...making it visible.....
Aerial survey and mobile mapping
-----Original Message-----
From: Bino Oetomo [mailto:[email protected]]
Sent: Mon 20/09/2010 3:00 PM
To: [email protected]
Subject: [Geoserver-users] Question : How to ogc-filter in SLD
Dear All ...
I'm learning on using ogc:filter ,
per
http://docs.geoserver.org/2.0.0/user/styling/sld-tipstricks/mixed-geometries.html
But for comparing the value of "level" coloumn in PostGis.
---SLD START----
<?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>Point Multi Level </Name>
<UserStyle>
<Title>Default point</Title>
<Abstract>A sample style that just prints out a 6px wide red
square</Abstract>
<FeatureTypeStyle>
<!--FeatureTypeName>Feature</FeatureTypeName-->
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualsTo>
<ogc:Function name="in5">
<ogc:Function name="level0">
<ogc:PropertyName>level</ogc:PropertyName>
</ogc:Function>
<ogc:Literal>0</ogc:Literal>
<ogc:Literal>1</ogc:Literal>
<ogc:Literal>2</ogc:Literal>
<ogc:Literal>3</ogc:Literal>
<ogc:Literal>4</ogc:Literal>
</ogc:Function>
<ogc:Literal>true</ogc:Literal>
</ogc:PropertyIsEqualsTo>
</ogc:Filter>
<MaxScaleDenominator>17749997</MaxScaleDenominator>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>square</WellKnownName>
<Fill>
<CssParameter name="fill">#FF0000</CssParameter>
</Fill>
</Mark>
<Size>6</Size>
</Graphic>
</PointSymbolizer>
<TextSymbolizer>
<Label>
<ogc:PropertyName>label</ogc:PropertyName>
</Label>
<Fill>
<CssParameter name="fill">#000000</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
---SLD-STOP--------------
This SLD generate an error :
-----ERRROR START-----
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content
was found starting with element 'ogc:PropertyIsEqualsTo'. One of
'{"http://www.opengis.net/ogc":spatialOps,
"http://www.opengis.net/ogc":comparisonOps,
"http://www.opengis.net/ogc":logicOps,
"http://www.opengis.net/ogc":FeatureId}' is expected.
-----ERRROR STOP-----
Kindly please give me enlightment to fix this problem
Sincerely
-bino-
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users