Package org.geotools.data.wfs.internal
Class WFSContentComplexFeatureCollection
- Object
-
- BaseFeatureCollection<FeatureType,Feature>
-
- WFSContentComplexFeatureCollection
-
- All Implemented Interfaces:
FeatureCollection<FeatureType,Feature>
public class WFSContentComplexFeatureCollection extends BaseFeatureCollection<FeatureType,Feature>
Feature collection for parsing complex features.- Author:
- Adam Brown (Curtin University of Technology), Rini Angreani (CSIRO Earth Science and Resource Engineering)
-
-
Field Summary
-
Fields inherited from class BaseFeatureCollection
id
-
-
Constructor Summary
Constructors Constructor Description WFSContentComplexFeatureCollection(GetFeatureRequest request, FeatureType schema, QName name, Filter filter, WFSClient client)
Making a feature collection based on a request for a type with a filter.WFSContentComplexFeatureCollection(GetFeatureRequest request, FeatureType schema, QName name, WFSClient client)
Making a feature collection based on a request for a type without any filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureIterator<Feature>
features()
Make sure to close the iterator.FeatureType
getSchema()
The schema for the child feature members of this collection.FeatureCollection<FeatureType,Feature>
subCollection(Filter filter)
Issue a new request for subCollection
-
-
-
Constructor Detail
-
WFSContentComplexFeatureCollection
public WFSContentComplexFeatureCollection(GetFeatureRequest request, FeatureType schema, QName name, WFSClient client)
Making a feature collection based on a request for a type without any filter.
-
WFSContentComplexFeatureCollection
public WFSContentComplexFeatureCollection(GetFeatureRequest request, FeatureType schema, QName name, Filter filter, WFSClient client)
Making a feature collection based on a request for a type with a filter.
-
-
Method Detail
-
features
public FeatureIterator<Feature> features()
Make sure to close the iterator.- Specified by:
features
in interfaceFeatureCollection<FeatureType,Feature>
- Specified by:
features
in classBaseFeatureCollection<FeatureType,Feature>
- Returns:
- A FeatureIterator.
-
getSchema
public FeatureType getSchema()
Description copied from interface:FeatureCollection
The schema for the child feature members of this collection.Represents the most general FeatureType in common to all the features in this collection.
- For a collection backed by a shapefiles (or database tables) the FeatureType returned by getSchema() will complete describe each and every child in the collection.
- For mixed content FeatureCollections you will need to check the FeatureType of each Feature as it is retrived from the collection
- The degenerate case returns the "_Feature" FeatureType, where the only thing known is that the contents are Features.
- Specified by:
getSchema
in interfaceFeatureCollection<FeatureType,Feature>
- Overrides:
getSchema
in classBaseFeatureCollection<FeatureType,Feature>
- Returns:
- FeatureType describing the "common" schema to all child features of this collection
-
subCollection
public FeatureCollection<FeatureType,Feature> subCollection(Filter filter)
Issue a new request for subCollection- Specified by:
subCollection
in interfaceFeatureCollection<FeatureType,Feature>
- Overrides:
subCollection
in classBaseFeatureCollection<FeatureType,Feature>
- Returns:
- SimpleFeatureCollection identified as subset.
- See Also:
FeatureList
-
-