dwins / geoscript.scala

Scala implementation of the GeoScript API
http://geoscript.org/
MIT License
47 stars 14 forks source link

SLD to CSS conversion #24

Open dwins opened 12 years ago

dwins commented 12 years ago

Allow users to "import" existing SLD styles as CSS.

aaime commented 11 years ago

That would be nice. The conversion might be "stupid" for starters, and just do a plain translation from sld to css, without any attempt at compacting the result leveraging cascading (that might be complicated, as there might be more than one way to do it)

dwins commented 11 years ago

There is an implementation of what you're talking about in https://github.com/dwins/sld2css . It's ok for simple styles, but gets more wrong the bigger your style is. I haven't used it in anger though so I'm not sure how much trouble it is to correct the broken output.