[Schmitzm-commits] r1051 - trunk/src/schmitzm/geotools/styling

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Sep 22 15:43:51 CEST 2010


Author: mojays
Date: 2010-09-22 15:43:51 +0200 (Wed, 22 Sep 2010)
New Revision: 1051

Modified:
   trunk/src/schmitzm/geotools/styling/StylingUtil.java
Log:
new StylingUtil.correctPropertyNames(Style)

Modified: trunk/src/schmitzm/geotools/styling/StylingUtil.java
===================================================================
--- trunk/src/schmitzm/geotools/styling/StylingUtil.java	2010-09-22 13:43:32 UTC (rev 1050)
+++ trunk/src/schmitzm/geotools/styling/StylingUtil.java	2010-09-22 13:43:51 UTC (rev 1051)
@@ -2491,16 +2491,26 @@
 		return filterSLDVisibleOnly(fc, style, scaleDenominator);
 	}
 	
-	/**
+    /**
+     * Since GT2.6, the AttributeNames are case sensitive. Also the raster
+     * Styles need GeometryProperty set to "geom" to work. This method checks
+     * all referenced AttributeNames.
+     * 
+     * @param Schema may be <code>null</code>, e.g. for raster layers
+     * 
+     *        TODO Rename to correctStye
+     */
+    public static Style correctPropertyNames(Style style) {
+      return correctPropertyNames(style,null);
+    }
+    
+    /**
 	 * Since GT2.6, the AttributeNames are case sensitive. Also the raster
 	 * Styles need GeometryProperty set to "geom" to work. This method checks
 	 * all referenced AttributeNames and checks them against the schema.
 	 * 
 	 * @param Schema may be <code>null</code>, e.g. for raster layers
 	 * 
-	 * @retun <code>true</code> if something has been change, otherwise
-	 *        <code>false</code>.
-	 *        
 	 *        TODO Rename to correctStye
 	 */
 	public static Style correctPropertyNames(Style style,



More information about the Schmitzm-commits mailing list