I am setting up a GeoServer instance to serve up a few different PostGIS databases. I have GeoServer up and running however, it takes me forever to enter the SLD into GeoServer by hand. Is there a better way to generate SLD for GeoServer via some GUI based application?
QGIS has a OpenGeo Explorer (for GeoServer) plug-in that you can create new SLD styles based on your feature symbology, then push to your server.
You may also use uDig web GIS app. to pull in PostGIS layers, then copy out the .xml sld text which you may paste within GeoServer SLD styling editor.
I did a lot of trial-error tests with SLD lately, and my sum up is
use Atlas Styler. They have problems with certificates (version 2.0), newest Java runtime refuses to launch the app, you have to adjust the security settings of Java, but its the only tool doing ALMOST all I expect it to do. Only filters (setting filter like Field='text' will become [Field = text] and this is invalid) are working some curious way. But else, the provided SLD works like charm with Geoserver.
Forget QGIS. It has error, when exporting styles with labels, the labels are not exported correctly, more here : http://hub.qgis.org/issues/9365 and many of the exported SLD didnt work for me at all. It uses different version of specification (newer) than Geoserver and many of the used tags end up unrecognized or unusable. Saving the style directly to postgis made my map unrenderable ...
For limited style editing, you can use GeoExplorer (part of OpenGeo Suite), runs on same webserver as Geoserver and can provide some basic SLD editing. Forget about advanced styles like SVG with variable URL, even shapes and marks as polygon fill, only plain color. But for some work, it is enough and its pretty straightforward.
I remember using Atlas Styler to generate a (basic) skeleton SLD file and then edit it by hand, but the program was very helpful to get started. This software can read from PostGIS or Shapefile.
Take a look at
it is a free open source tool recently released by SCISYS. You can download the installer and the portable version (.jar file) from https://github.com/robward-scisys/sldeditor/releases/.
GeoCat Bridge creates SLD straight out of ArcGIS, optimized for GeoServer. Not Free and Open Source though. http://geocat.net/bridge
Disclaimer: I am from GeoCat.