[Xulu-commits] r83 - in trunk: defaults/plugin/LoggerPlugin lib/schmitzm src/edu/bonn/xulu/plugin/io

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Feb 13 17:39:07 CET 2010


Author: mojays
Date: 2010-02-13 17:39:01 +0100 (Sat, 13 Feb 2010)
New Revision: 83

Modified:
   trunk/defaults/plugin/LoggerPlugin/log4j.cfg
   trunk/lib/schmitzm/schmitzm-2.0.x.jar
   trunk/src/edu/bonn/xulu/plugin/io/IOUtil.java
Log:
default log4j.cfg: show warnings (not only errors)
IOUtil: handle "normal" Geotools styles on style export
schmitzm-2.0.x.jar updated

Modified: trunk/defaults/plugin/LoggerPlugin/log4j.cfg
===================================================================
--- trunk/defaults/plugin/LoggerPlugin/log4j.cfg	2010-02-13 14:48:30 UTC (rev 82)
+++ trunk/defaults/plugin/LoggerPlugin/log4j.cfg	2010-02-13 16:39:01 UTC (rev 83)
@@ -24,10 +24,10 @@
 
 
 # Root-Logger definieren
-log4j.rootLogger = ERROR, CONSOLE
+log4j.rootLogger = WARN, CONSOLE
 
 # Applikations-Logger definieren
-log4j.logger.edu.bonn.xulu = ERROR, XULULOG
+log4j.logger.edu.bonn.xulu = WARN, XULULOG
 
 # Modell-Logger
 # --> alle Log-Ausgaben von Modellen sollen nicht auch noch in die Xulu-Log

Modified: trunk/lib/schmitzm/schmitzm-2.0.x.jar
===================================================================
(Binary files differ)

Modified: trunk/src/edu/bonn/xulu/plugin/io/IOUtil.java
===================================================================
--- trunk/src/edu/bonn/xulu/plugin/io/IOUtil.java	2010-02-13 14:48:30 UTC (rev 82)
+++ trunk/src/edu/bonn/xulu/plugin/io/IOUtil.java	2010-02-13 16:39:01 UTC (rev 83)
@@ -11,10 +11,15 @@
 
 package edu.bonn.xulu.plugin.io;
 
+import java.io.File;
 import java.net.URL;
 
+import org.geotools.styling.Style;
+
 import schmitzm.data.property.Property;
 import schmitzm.data.property.ScalarProperty;
+import schmitzm.geotools.io.GeoExportUtil;
+import schmitzm.geotools.styling.StylingUtil;
 import skrueger.geotools.StyledLayerStyle;
 import skrueger.geotools.StyledLayerUtil;
 import edu.bonn.xulu.data.XuluObject;
@@ -110,6 +115,8 @@
       if ( style != null ) {
         if ( style instanceof StyledLayerStyle )
           StyledLayerUtil.saveStyledLayerStyle( (StyledLayerStyle)style, objectURL );
+        else if ( style instanceof Style )
+          StylingUtil.saveStyleToSLD((Style)style, new File(objectURL.toURI()));
         else
           throw new UnsupportedOperationException("Export of style not supported: "+style.getClass().getSimpleName());
       }



More information about the Xulu-commits mailing list