On Thu, Dec 25, 2014 at 2:38 AM, David Collins <[email protected]>
wrote:

> This is an interesting discussion because we use CSS styling extensively
> with Geoserver.  For us, this is much easier to use, understand and
> maintain than SLD (although ySLD would make life a bit easier).  Andrea
> Aime has done some great work recently with the module, and of course,
> David Winslow did a great job implementing the system in the first place.
>
> We have also used CartoCSS lately within Tilemill to create geology &
> geophysics phone maps, and that is also very nice to use.
>
> With the Geoserver CSS, it seems to me that it will always be limited by
> the fact that it has to be converted back to SLD.
>
> Do you think this will always be the case with Geoserver, or is there a
> possibility that Geoserver might in future have an engine that processes
> CSS directly ?  (using code from other open source projects?)
>

Using code from other projects for styling/rendering, I would be close to
impossible: the less native code we depend on, the better (it's not
normally written to work in a multithreaded enviroment, it makes GeoServer
harder to install, and the first little glitch in it brings the entire
server down, reason why most C based servers are using FastCGI, on crash
the program just gets restarted).

As for having GeoServer run directly off CSS using Java code, it's of
course a possibility, but it would require quite a bit
of work up front (to just stand it up), and some maintenance headeache down
the line, as we'd basically end up having to maintain
two different styling engines.

Mind, in my recent work I've setup a CSS->SLD translation mode that is fast
(going down from minutes/hours to seconds for crazy
complex CSS styles), however it has a drawback, it generates some extra
spurious rules to simplify its translation work,
so the result to a call to GetLegendGraphic won't make you very happy.
Which is no surprise, if you look around the CSS based tools do not seem to
generate a legend for you anyways, you have to create
one by hand or with some support tool, exactly because it's quite hard to
figure out which combination of rules will
end up matching features, and which will never match because higher
specificity rules will steal the features away from them.

See these two thread in geotools-devel for more information about this
topic:
http://osgeo-org.1560.x6.nabble.com/Extending-FeatureTypeStyle-adding-rule-matching-mode-td5175696.html
http://osgeo-org.1560.x6.nabble.com/Controlling-CSS-gt-Style-transation-mode-from-the-css-style-itself-td5179110.html

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Please, notice that GeoSolutions will be closed for seasonal holidays
from December the 24th to January the 6th
==

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to