[Schmitzm-commits] r491 - in branches/1.0-gt2-2.6/src: schmitzm/geotools/gui skrueger/geotools/selection

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 23 14:57:16 CEST 2009


Author: alfonx
Date: 2009-10-23 14:57:15 +0200 (Fri, 23 Oct 2009)
New Revision: 491

Modified:
   branches/1.0-gt2-2.6/src/schmitzm/geotools/gui/JMapPane.java
   branches/1.0-gt2-2.6/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java
Log:
removed the debug sld to file selection.sld


Modified: branches/1.0-gt2-2.6/src/schmitzm/geotools/gui/JMapPane.java
===================================================================
--- branches/1.0-gt2-2.6/src/schmitzm/geotools/gui/JMapPane.java	2009-10-23 12:35:59 UTC (rev 490)
+++ branches/1.0-gt2-2.6/src/schmitzm/geotools/gui/JMapPane.java	2009-10-23 12:57:15 UTC (rev 491)
@@ -1635,6 +1635,8 @@
 			MapLayer layer = layerList[i];
 			if (!layer.isVisible())
 				continue;
+			
+			// This should never happen, because the check should be performed earlier already
 			if (!isMapLayerSelectable(layer)) {
 				LOGGER.debug("Ignoring layer " + layer.getTitle()
 						+ " because it is not declared as selectable!");
@@ -1852,7 +1854,9 @@
 
 		// Events ausloesen fuer jedes Layer
 		for (final Enumeration<MapLayer> e = result.keys(); e.hasMoreElements();) {
+
 			final MapLayer layer = e.nextElement();
+			
 			final FeatureCollection<SimpleFeatureType, SimpleFeature> fc = result
 					.get(layer);
 			if (fc != null && !fc.isEmpty())

Modified: branches/1.0-gt2-2.6/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java
===================================================================
--- branches/1.0-gt2-2.6/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java	2009-10-23 12:35:59 UTC (rev 490)
+++ branches/1.0-gt2-2.6/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java	2009-10-23 12:57:15 UTC (rev 491)
@@ -287,11 +287,15 @@
 				DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();
 				dsv.visit(originalStyle);
 				Style newStyle = (Style) dsv.getCopy();
-
-				StylingUtil.saveStyleToSLD(newStyle, new File(
-						"/home/stefan/Desktop/selection.sld"));
-
-				// DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();
+//
+//				try {
+////					
+////				StylingUtil.saveStyleToSLD(newStyle, new File(
+////						"/home/stefan/Desktop/selection.sld"));
+//				} catch (Exception e) {
+//				}
+//
+//				// DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();
 				// dsv.visit(originalStyle);
 				// Style newStyle = originalStyle;
 



More information about the Schmitzm-commits mailing list