Skip to content

Commit

Permalink
Fixed app-schema filtering
Browse files Browse the repository at this point in the history
MappingFeatureIteratorFactory.getInstance was changing the filter of the query that was passed in and as a result a given FeatureCollection would only work correctly once.  This change makes a copy of the passed in query before updating it.
  • Loading branch information
Jesse Eichar committed Aug 24, 2012
1 parent 03d0948 commit 61f9857
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -103,8 +103,9 @@ public boolean isListFilterExists() {
}

public static IMappingFeatureIterator getInstance(AppSchemaDataAccess store,
FeatureTypeMapping mapping, Query query, Filter unrolledFilter) throws IOException {
FeatureTypeMapping mapping, Query rawQuery, Filter unrolledFilter) throws IOException {

Query query = new Query(rawQuery);
if (mapping instanceof XmlFeatureTypeMapping) {
return new XmlMappingFeatureIterator(store, mapping, query);
}
Expand Down

0 comments on commit 61f9857

Please sign in to comment.