1

I am trying to convert SLD to CSS styles in latest geoserver version 2.8.1.

I have added css plugins(from geoserver-2.8.1-css-plugin.zip) but it is not working properly.

Is there any other plugin for converting from SLD to CSS style?

What is the solutions for this?

3
  • 3
    The CSS plugin in Geoserver works just fine. However, it is not intended to convert SLD to CSS. It converts CSS to SLD. Geoserver natively uses SLD and not CSS. The CSS plugin allows you to enter CSS (which is much easier to read and write than XML). The plugin then converts that to SLD for internal use. Commented Jan 14, 2016 at 7:20
  • Why are you trying to do this?
    – Ian Turton
    Commented Jan 14, 2016 at 7:52
  • @iant : going to migrate my project to css style
    – Ratheesh
    Commented Jan 14, 2016 at 12:43

1 Answer 1

3

The CSS plugin does a CSS to SLD conversion, the opposite is not always possible as long as CSS cascading is enabled.

On the current developer series (GeoServer 2.9.x) we have a directive to disable cascading, e.g., @mode "Simple"; at the top of the file, that would allow one to write a SLD -> CSS translator... but it's not there yet. Contributions welcomed :-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.