Class XmlComplexFeatureParser
Parses complex features from a WFS response input stream.
- Author:
- Adam Brown (Curtin University of Technology)
-
Field Summary
Fields inherited from class XmlFeatureParser
parser, targetType
-
Constructor Summary
ConstructorsConstructorDescriptionXmlComplexFeatureParser
(InputStream getFeatureResponseStream, FeatureType targetType, QName featureDescriptorName) Initialises a new instance of the XmlComplexFeature class.XmlComplexFeatureParser
(InputStream getFeatureResponseStream, FeatureType targetType, QName featureDescriptorName, Filter filter) Initialises a new instance of the XmlComplexFeature class.XmlComplexFeatureParser
(InputStream getFeatureResponseStream, FeatureType targetType, QName featureDescriptorName, Filter filter, WFSStrategy strategy) Initialises a new instance of the XmlComplexFeature class. -
Method Summary
Methods inherited from class XmlFeatureParser
close, getFeatureType, getNumberOfFeatures, parseAttributeValue, seekFeature, setGeometryFactory
-
Constructor Details
-
XmlComplexFeatureParser
public XmlComplexFeatureParser(InputStream getFeatureResponseStream, FeatureType targetType, QName featureDescriptorName) throws IOException Initialises a new instance of the XmlComplexFeature class.- Parameters:
getFeatureResponseStream
- the input stream of the WFS response.targetType
- The feature type of the WFS response.featureDescriptorName
- The name of the feature descriptor.- Throws:
IOException
-
XmlComplexFeatureParser
public XmlComplexFeatureParser(InputStream getFeatureResponseStream, FeatureType targetType, QName featureDescriptorName, Filter filter) throws IOException Initialises a new instance of the XmlComplexFeature class.- Parameters:
getFeatureResponseStream
- the input stream of the WFS response.targetType
- The feature type of the WFS response.featureDescriptorName
- The name of the feature descriptor.filter
- Filter to apply to the features.- Throws:
IOException
-
XmlComplexFeatureParser
public XmlComplexFeatureParser(InputStream getFeatureResponseStream, FeatureType targetType, QName featureDescriptorName, Filter filter, WFSStrategy strategy) throws IOException Initialises a new instance of the XmlComplexFeature class.- Parameters:
getFeatureResponseStream
- the input stream of the WFS response.targetType
- The feature type of the WFS response.featureDescriptorName
- The name of the feature descriptor.filter
- Filter to apply to the features.strategy
- Which WFS version to use- Throws:
IOException
-
-
Method Details
-
setFilter
Sets a filter that is evaluated against the returned features. -
parse
Search for and parse the next feature.- Returns:
- the next feature in the stream or
null
if there are no more features to parse. - Throws:
IOException
-