On Thu, Mar 20, 2014 at 11:55 PM, Jody Garnett <[email protected]>wrote:

> Yes, I think that was the point of CSS?
>
> Something like
>
> [ speed > 0.5 ] {
>    mark: symbol('cross');
> }
> * {
>   mark: symbol('circle');
> }
>

This will give cross to everything above 0.5, and circle to everything
below, no overlap,
the more specific rules overrides/add bits in the more generic one (where
adding is
just for properties missing, the ones that are already there get
overwritten instead).

If you want the equivalent of SLD I believe you need to invert your line of
thinking,
and be explicit about the overlap, like this (untested, but hopefully you
get the idea):

[ speed > 0.5 ] {
   mark: symbol('cross');
}
[speed <= 0.5] {
  mark: symbol('cross),symbol('circle');
}

Cheers
Andrea

-- 
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to