Rearchitect Styling config
--------------------------
Key: GEOS-305
URL: http://jira.codehaus.org/browse/GEOS-305
Project: GeoServer
Type: Task
Reporter: Chris Holmes
Assigned to: dblasby
Fix For: 1.3-rc1
Our management of Styles is quite klunky, the result of rolling in code from gt2wms without really knowing what's going on, and then doing a few odd hacks. The first improvement that should be made is to get rid of Styles and names in the catalog.xml file. All this does is associate named layers with sld files. This should not be needed, as SLD files should have their own names. Perhaps it is useful to be able to be able to specify a different name. Right now we just over ride the getName() of the style, setting it with the catalog names. I believe a saner approach would be to just not rely on the catalog.xml names, extract the names from the sld's. This would require better errors if users are to try to add two SLD files that have the same name. This is actually quite common, as users will copy and paste to make a new sld file, forgetting to change the name. We just need to be sure to check for that in our validation stuff, and throw intelligent errors if users try to do it by hand. I do believe it is ok if we just have a styles directory, where all styles must go. I see no reason to allow the additional flexibility of specifying a url to a style, users can just copy stuff in. This rearchitecture also makes get and put style a lot easier, I believe, since you just work with the styles directory.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira