Skip to content

Commit

Permalink
[GEOS-8042] ensure WFS-T returns FeatureIDs in the correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Thompson authored and jodygarnett committed Apr 4, 2017
1 parent 997631b commit 1bd23f6
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -34,11 +34,13 @@
import org.geoserver.wfs.request.TransactionResponse;
import org.geotools.data.DataUtilities;
import org.geotools.data.FeatureStore;
import org.geotools.data.collection.ListFeatureCollection;
import org.geotools.data.simple.SimpleFeatureCollection;
import org.geotools.data.simple.SimpleFeatureIterator;
import org.geotools.data.simple.SimpleFeatureStore;
import org.geotools.factory.Hints;
import org.geotools.feature.DefaultFeatureCollection;
import org.geotools.feature.FeatureCollection;
import org.geotools.geometry.jts.JTS;
import org.geotools.referencing.CRS;
import org.geotools.referencing.operation.projection.PointOutsideEnvelopeException;
Expand Down Expand Up @@ -95,11 +97,11 @@ public void execute(TransactionElement element, TransactionRequest request, Map
for (Iterator f = featureList.iterator(); f.hasNext();) {
SimpleFeature feature = (SimpleFeature) f.next();
SimpleFeatureType schema = feature.getFeatureType();
DefaultFeatureCollection collection =
(DefaultFeatureCollection) schema2features.get(schema);
ListFeatureCollection collection =
(ListFeatureCollection) schema2features.get(schema);

if (collection == null) {
collection = new DefaultFeatureCollection(null, schema);
collection = new ListFeatureCollection(schema);
schema2features.put(schema, collection);
}

Expand Down

0 comments on commit 1bd23f6

Please sign in to comment.