Dear Andrea
Andrea Aime wrote:
> 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>
>   
Great !! it works.

BTW , actualy I want something like --> level in ('0' , '1' , '2' , '3' 
, '4')
means that the compared values is "varchar" .

> 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
>
>   

I think I can't use "PropertyIsBetween" , since the compared values is 
not "integer" ?

Again ....
My data Is a PostGis ,
It have varchar coloumn called 'level' with values in --> '0' , '1' , 
'2' , '3' , '4'

My goals is to display the data with spesific value or values at 
specific "zoom" level.
The Postgis data is imported from community developed Garmin map img 
file ... thats why it have a 'level' values between 0-4 ... but it's 
imported (by:shp2pgsql) as VarChar.

I also tried to create a pgsql view for each level ... in hope that 
it'll speed up the rendering process.
But I still fuzzed by how to calculate the ScaleDenominator.

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

Reply via email to