[Geoserver-users] Is it possible to use a getMap request with the CSS style (CSS module of Geoserver)

Dear all,
I am well aware of dynamic styling using SLDs passed in a getMap request
to Geoserver. Is it possible to pass a CSS file to Geoserver to be used
with the CSS module? All examples I see are only using the CSS on the
server, where the style is associated with the layer as the default style.
Could someone please share an example?

Thanks,
Martin

Hi Martin,

The CSS module only adds the interactive CSS demo. Allowing clients to specify CSS in a getMap request is not supported. I agree that is would be a nice feature, but there are some complications in making it suitable for the internet. The CSS translation code is currently quite slow, and even if it were made instantaneous it still is quite easy to construct CSS styles which generate enormous output. Without some safeguards to prevent unbounded usage, allowing unauthenticated users to submit arbitrary CSS for conversion would open GeoServer up to trivial denial-of-service attacks, so I have not done it.

If you’re interested in helping to implement this feature feel free to email me about it.


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

On Feb 13, 2013 4:14 PM, “Martin Tomko” <tomkom@anonymised.com> wrote:

Dear all,
I am well aware of dynamic styling using SLDs passed in a getMap request
to Geoserver. Is it possible to pass a CSS file to Geoserver to be used
with the CSS module? All examples I see are only using the CSS on the
server, where the style is associated with the layer as the default style.
Could someone please share an example?

Thanks,
Martin


Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi David,
Thanks for a VERY fast response!
I will let you know should our need go that far – for the moment, I just needed to know whether to stick with SLD or let our developer who are more CSS fluent play with it. It would have been nice – but I understand the security concerns.

Thanks,
Martin