On 20/09/2010 08:23, Bino Oetomo wrote:
> When I did the replacement ... it's validated sucessfully.
> But when I try the "Layer Preview" (openlayer), it generate error file
> that content :
>
> ---START----
> <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
> ServiceExceptionReport SYSTEM
>
"http://jabber.int:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.1"> <ServiceException>
> java.lang.RuntimeException: Unable to find function Level0
> Unable to find function Level0
> </ServiceException></ServiceExceptionReport>
The message is clear, there is no Level0 function in GeoServer.
Not sure what you are trying to do, but by the way your filter
looks you want to do something like 'level in (0,1,2,3,4)'.
If so remove the function call to level0:
<ogc:PropertyIsEqualTo>
<ogc:Function name="in5">
<ogc:PropertyName>level</ogc:PropertyName>
<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:PropertyIsEqualTo>
Mind the same filtert can be expressed in a more compact way
using something like (did not check it, may contain typos and
other errors):
<ogc:PropertyIsBetween>
<ogc:PropertyName>level</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
<ogc:Literal>4</ogc:Literal>
</ogc:PropertyIsBetween>
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
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