[Schmitzm-commits] r1252 - in branches/2.3.x/src: schmitzm/geotools/feature skrueger/geotools/io

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


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

Modified:
   branches/2.3.x/src/schmitzm/geotools/feature/FeatureUtil.java
   branches/2.3.x/src/skrueger/geotools/io/TwistedLatLonFeatureSource.java
Log:
Replaced System.out.println with LOGGER.debug

Modified: branches/2.3.x/src/schmitzm/geotools/feature/FeatureUtil.java
===================================================================
--- branches/2.3.x/src/schmitzm/geotools/feature/FeatureUtil.java	2010-11-07 19:12:44 UTC (rev 1251)
+++ branches/2.3.x/src/schmitzm/geotools/feature/FeatureUtil.java	2010-11-07 19:12:57 UTC (rev 1252)
@@ -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: branches/2.3.x/src/skrueger/geotools/io/TwistedLatLonFeatureSource.java
===================================================================
--- branches/2.3.x/src/skrueger/geotools/io/TwistedLatLonFeatureSource.java	2010-11-07 19:12:44 UTC (rev 1251)
+++ branches/2.3.x/src/skrueger/geotools/io/TwistedLatLonFeatureSource.java	2010-11-07 19:12:57 UTC (rev 1252)
@@ -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