[Schmitzm-commits] r1251 - in trunk/src: schmitzm/geotools/feature skrueger/geotools/io

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Nov 7 20:12:44 CET 2010


Author: alfonx
Date: 2010-11-07 20:12:44 +0100 (Sun, 07 Nov 2010)
New Revision: 1251

Modified:
   trunk/src/schmitzm/geotools/feature/FeatureUtil.java
   trunk/src/skrueger/geotools/io/TwistedLatLonFeatureSource.java
Log:
Removed System.out.println with LOGGER.debug

Modified: trunk/src/schmitzm/geotools/feature/FeatureUtil.java
===================================================================
--- trunk/src/schmitzm/geotools/feature/FeatureUtil.java	2010-11-07 16:17:13 UTC (rev 1250)
+++ trunk/src/schmitzm/geotools/feature/FeatureUtil.java	2010-11-07 19:12:44 UTC (rev 1251)
@@ -2581,14 +2581,14 @@
 			Pattern compile = Pattern.compile(s3);
 			Matcher matcher = compile.matcher(d.getLocalName());
 
-			System.out.println("New Matching Debug " + " " + s2 + " " + s3
+			LOGGER.debug("New Matching Debug " + " " + s2 + " " + s3
 					+ " " + localName + " " + d.getLocalName());
 
 			if (matcher.find()) {
 				Log.info("New Matching Debug " + localName + " zu "
 						+ d.getLocalName());
 
-				System.out.println("New Matching Debug !!! " + localName
+				LOGGER.debug("New Matching Debug !!! " + localName
 						+ " zu " + d.getLocalName());
 
 				return new NameImpl(d.getName().getNamespaceURI(), d.getName()

Modified: trunk/src/skrueger/geotools/io/TwistedLatLonFeatureSource.java
===================================================================
--- trunk/src/skrueger/geotools/io/TwistedLatLonFeatureSource.java	2010-11-07 16:17:13 UTC (rev 1250)
+++ trunk/src/skrueger/geotools/io/TwistedLatLonFeatureSource.java	2010-11-07 19:12:44 UTC (rev 1251)
@@ -13,6 +13,7 @@
 import java.io.IOException;
 import java.util.Set;
 
+import org.apache.log4j.Logger;
 import org.geotools.data.DataAccess;
 import org.geotools.data.FeatureListener;
 import org.geotools.data.FeatureSource;
@@ -28,6 +29,9 @@
 import org.opengis.referencing.crs.CoordinateReferenceSystem;
 import org.opengis.referencing.crs.GeographicCRS;
 
+import schmitzm.geotools.feature.FeatureUtil;
+import schmitzm.lang.LangUtil;
+
 import com.vividsolutions.jts.geom.Envelope;
 
 public class TwistedLatLonFeatureSource implements
@@ -43,11 +47,14 @@
 		CoordinateReferenceSystem crs = originaleFS.getSchema()
 				.getCoordinateReferenceSystem();
 		if (crs instanceof GeographicCRS) {
-			System.out.println("CRS is GeographicCRS, twist it!");
+			LOGGER.debug("CRS is GeographicCRS, twist it!");
 			setTwist(true);
 		}
 	}
 
+	private static final Logger LOGGER = LangUtil
+			.createLogger(TwistedLatLonFeatureSource.class);
+
 	@Override
 	public void addFeatureListener(FeatureListener listener) {
 		originaleFS.addFeatureListener(listener);



More information about the Schmitzm-commits mailing list