Browse files

Fix arcade by using ListFeatureCollection

  • Loading branch information...
1 parent 645aa47 commit 1ecc93dd4d2135cdcb1c9d03adb4c255fefc3d20 @jodygarnett jodygarnett committed Oct 29, 2012
View
5 modules/plugin/arcsde/datastore/src/test/java/org/geotools/arcsde/data/TestData.java
@@ -38,8 +38,8 @@
import org.geotools.arcsde.session.SessionPoolFactory;
import org.geotools.arcsde.session.UnavailableConnectionException;
import org.geotools.data.DataSourceException;
+import org.geotools.data.collection.ListFeatureCollection;
import org.geotools.data.simple.SimpleFeatureCollection;
-import org.geotools.feature.FeatureCollections;
import org.geotools.feature.simple.SimpleFeatureBuilder;
import org.geotools.referencing.crs.DefaultGeographicCRS;
import org.opengis.feature.simple.SimpleFeature;
@@ -706,8 +706,8 @@ public Void execute(ISession session, SeConnection connection) throws SeExceptio
*/
public SimpleFeatureCollection createTestFeatures(Class<? extends Geometry> jtsGeomType,
int numFeatures) throws IOException, SeException {
- SimpleFeatureCollection col = FeatureCollections.newCollection();
SimpleFeatureType type = getDataStore().getSchema(getTempTableName());
+ ListFeatureCollection col = new ListFeatureCollection( type );
Object[] values = new Object[type.getAttributeCount()];
for (int i = 0; i < numFeatures; i++) {
@@ -728,7 +728,6 @@ public SimpleFeatureCollection createTestFeatures(Class<? extends Geometry> jtsG
SimpleFeature f = SimpleFeatureBuilder.build(type, values, null);
col.add(f);
}
-
return col;
}

0 comments on commit 1ecc93d

Please sign in to comment.