[Schmitzm-commits] r1120 - trunk/src/schmitzm/geotools/feature
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Oct 14 21:58:54 CEST 2010
Author: mojays
Date: 2010-10-14 21:58:54 +0200 (Thu, 14 Oct 2010)
New Revision: 1120
Modified:
trunk/src/schmitzm/geotools/feature/FeatureUtil.java
Log:
FeatureUtil.modifyFeatureSource(.) no longer throws an Exception to avoid instability of Hudson build.
Modified: trunk/src/schmitzm/geotools/feature/FeatureUtil.java
===================================================================
--- trunk/src/schmitzm/geotools/feature/FeatureUtil.java 2010-10-14 19:49:03 UTC (rev 1119)
+++ trunk/src/schmitzm/geotools/feature/FeatureUtil.java 2010-10-14 19:58:54 UTC (rev 1120)
@@ -2468,8 +2468,8 @@
*/
public static void modifyFeatureSource(FeatureSource<SimpleFeatureType,SimpleFeature> sourceFs, AbstractDataStore destDataStore, AttributeModificationRule... destAttrRule) {
SimpleFeatureType sType = sourceFs.getSchema();
- SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();
- builder.setName(sType.getTypeName());
+ SimpleFeatureTypeBuilder typebuilder = new SimpleFeatureTypeBuilder();
+ typebuilder.setName(sType.getTypeName());
//***** Create the new attribute type for the destination FeatureSource *****
// Loop the attributes, which should be transfered to the
@@ -2477,15 +2477,17 @@
for (AttributeModificationRule rule : destAttrRule) {
AttributeDescriptor sDescr = sType.getDescriptor(rule.getAttrIdx());
AttributeDescriptor dDescr = rule.applyToAttributeType(sDescr);
- builder.add(dDescr);
+ typebuilder.add(dDescr);
}
// create the FeatureType for the destination FeatureSource
- SimpleFeatureType dType = builder.buildFeatureType();
+ SimpleFeatureType dType = typebuilder.buildFeatureType();
//***** Create the new FeatureSource *****
-
+ SimpleFeatureBuilder featureBuilder = getFeatureBuilderFromCache(dType, false);
- throw new UnsupportedOperationException("FeatureUtil.modifyFeatureSource(..) not yet implemented!");
+
+ LOGGER.error("FeatureUtil.modifyFeatureSource(..) not yet implemented!");
+
}
/**
More information about the Schmitzm-commits
mailing list