Permalink
Browse files

A couple of fixes for the process module

  • Loading branch information...
1 parent b65de83 commit 1654950c63e9b784c0d21431deba275b4c102b70 @jodygarnett jodygarnett committed Oct 30, 2012
@@ -73,7 +73,7 @@ public FeatureToFeatureProcess(FeatureToFeatureProcessFactory factory) {
//create the result feature collection
SimpleFeatureType targetSchema = getTargetSchema((SimpleFeatureType) features.getSchema(), input);
- FeatureCollection result = new DefaultFeatureCollection(null, targetSchema);
+ DefaultFeatureCollection result = new DefaultFeatureCollection(null, targetSchema);
SimpleFeatureBuilder fb = new SimpleFeatureBuilder((SimpleFeatureType) result.getSchema());
FeatureIterator fi = features.features();
@@ -97,7 +97,7 @@ public FeatureToFeatureProcess(FeatureToFeatureProcessFactory factory) {
}
}
finally {
- features.close( fi );
+ fi.close();
}
monitor.complete();
@@ -200,7 +200,7 @@ private SimpleFeatureCollection buildTestFeatures()
tb.add("count", Integer.class);
SimpleFeatureType schema = tb.buildFeatureType();
- SimpleFeatureCollection fc = new ListFeatureCollection(schema);
+ ListFeatureCollection fc = new ListFeatureCollection(schema);
SimpleFeatureBuilder fb = new SimpleFeatureBuilder(schema);
GeometryFactory factory = new GeometryFactory(new PackedCoordinateSequenceFactory());

0 comments on commit 1654950

Please sign in to comment.