[Schmitzm-commits] r1918 - trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Wed Mar 28 12:19:52 CEST 2012


Author: keeb
Date: 2012-03-28 12:19:52 +0200 (Wed, 28 Mar 2012)
New Revision: 1918

Modified:
   trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature/FeatureUtil.java
Log:
changing use of deprecated method createFeature() to new method createFeatureInstance()

Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature/FeatureUtil.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature/FeatureUtil.java	2012-03-28 10:19:43 UTC (rev 1917)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature/FeatureUtil.java	2012-03-28 10:19:52 UTC (rev 1918)
@@ -1076,7 +1076,7 @@
 							.getDefaultValue());
 				// Erweitertes SimpleFeature erzeugen und FeatureCollection
 				// fuellen
-				resultFc.add(createFeature(resultType, fValues));
+				resultFc.add(createFeatureInstance(resultType, null, null, fValues));
 			}
 		} finally {
 			fc.close(fi);
@@ -1226,7 +1226,7 @@
 						// Erweitertes SimpleFeature erzeugen und
 						// FeatureCollection
 						// fuellen
-						resultFc.add(createFeature(resultType, fValues));
+						resultFc.add(createFeatureInstance(resultType, null, null, fValues));
 					} else {
 						for (SimpleFeature f2 = null; joinedFeaturesIterator
 								.hasNext();) {
@@ -1707,7 +1707,7 @@
 			for (int i = 0; i < rsFeatureType.getAttributeCount(); i++)
 				rsFeatureValues[i] = rs.getObject(rsFeatureType
 						.getDescriptor(i).getName().getLocalPart());
-			rsFeatureCollection.add(createFeature(rsFeatureType,
+			rsFeatureCollection.add(createFeatureInstance(rsFeatureType,null,null,
 					rsFeatureValues));
 		}
 



More information about the Schmitzm-commits mailing list