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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 10 11:54:07 CET 2010


Author: alfonx
Date: 2010-11-10 11:54:06 +0100 (Wed, 10 Nov 2010)
New Revision: 1256

Modified:
   trunk/src/schmitzm/geotools/styling/StylingUtil.java
Log:


Modified: trunk/src/schmitzm/geotools/styling/StylingUtil.java
===================================================================
--- trunk/src/schmitzm/geotools/styling/StylingUtil.java	2010-11-08 15:30:47 UTC (rev 1255)
+++ trunk/src/schmitzm/geotools/styling/StylingUtil.java	2010-11-10 10:54:06 UTC (rev 1256)
@@ -3133,4 +3133,14 @@
 		saveStyleToSld(style, tempFile);
 		return validates(new FileInputStream(tempFile));
 	}
+
+	public static boolean isStyleDifferent(FeatureTypeStyle fts1,FeatureTypeStyle fts2) {
+		Style style1 = STYLE_BUILDER.createStyle();
+		style1.featureTypeStyles().add(fts1);
+		
+		Style style2 = STYLE_BUILDER.createStyle();
+		style2.featureTypeStyles().add(fts2);
+		
+		return isStyleDifferent(style1, style2);
+	}
 }



More information about the Schmitzm-commits mailing list