You can use any ECQL expression in your CSS filters.

[IEEERemainder(longitude, 10) = 0][IEEERemainder(latitude, 10) = 0] {
>  ...
> }


Keep in mind that even slightly complicated filters can defeat the
simplification algorithm in the CSS compiler and make the SLD output very
large - so generally you should avoid using functions in the selector when
your style has many rules.

Martin recently added a nice reference for ECQL syntax to the manual:
http://docs.geoserver.org/latest/en/user/filter/ecql_reference.html
You can consult your WFS capabilities document to see what filter functions
are available to you.

--
David Winslow
OpenGeo - http://opengeo.org/

On Fri, Apr 27, 2012 at 12:42 PM, Chris Haste <cha...@airdata.co.uk> wrote:

> Hi All / David****
>
> ** **
>
> Can the following SLD construct be performed via the CSS module? If so how
> would you go about doing it?****
>
> ** **
>
> It is being used to reduce the number of point being displayed…****
>
> ** **
>
> <ogc:Filter>
>   <ogc:And>
>     <ogc:PropertyIsEqualTo>
>        <ogc:Function name="IEEERemainder">
>           <ogc:PropertyName>longitude</ogc:PropertyName>
>           <ogc:Literal>10</ogc:Literal>
>         </ogc:Function>
>         <ogc:Literal>0</ogc:Literal>
>       </ogc:PropertyIsEqualTo>****
>
>       <ogc:PropertyIsEqualTo>
>         <ogc:Function name="IEEERemainder">
>            <ogc:PropertyName>latitude</ogc:PropertyName>
>            <ogc:Literal>10</ogc:Literal>
>          </ogc:Function>
>          <ogc:Literal>0</ogc:Literal>
>        </ogc:PropertyIsEqualTo>
>    </ogc:And>
>  </ogc:Filter>****
>
> *** This communication has been sent from World Fuel Services
> Corporation or its subsidiaries or its affiliates for the intended
> recipient
> only and may contain proprietary, confidential or privileged information.
> If you are not the intended recipient, any review, disclosure, copying,
> use, or distribution of the information included in this communication
> and any attachments is strictly prohibited. If you have received this
> communication in error, please notify us immediately by replying to this
> communication and delete the communication, including any
> attachments, from your computer. Electronic communications sent to or
> from World Fuel Services Corporation or its subsidiaries or its affiliates
> may be monitored for quality assurance and compliance purposes.***
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to