The gs-importer extension generates default SLD styles for imported layers.
I would like to extend this functionality to support style generation for arbitrary formats. This would involve: 1. Migrating org.geoserver.importer.StyleGenerator to the gs-main catalog package 2. Adding a generate() method to org.geoserver.catalog.StyleHandler, using StyleGenerator to generates a format-specific style based on a template. This change would allow us to define default templates for CSS styles (and other extended formats) upon import. Since CSS has a rather different stucture than SLD, this would provide a better default style than generating SLD and immediately converting to CSS in cases where CSS was used (Importer would still default to generating SLD). This functionality might also be usefull when creating new styles in the geoserver styles page - upon creating a new style, a default template for that format could be loaded. Given that this involves an API change to gs-main, I intend to get this in before the Aug 18 code freeze. Does anyone have any concerns or objections to this change? Torben Barsballe
------------------------------------------------------------------------------
_______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
