Class PullParserFeatureReader
java.lang.Object
org.geotools.data.wfs.internal.parsers.PullParserFeatureReader
- All Implemented Interfaces:
org.geotools.data.wfs.internal.GetParser<org.geotools.api.feature.simple.SimpleFeature>
public class PullParserFeatureReader
extends Object
implements org.geotools.data.wfs.internal.GetParser<org.geotools.api.feature.simple.SimpleFeature>
org.geotools.data.wfs.internal.GetParser<org.geotools.api.feature.simple.SimpleFeature>
for WFSFeatureReader
that uses the
geotools PullParser
to fetch Features out of a WFS GetFeature response.
-
Constructor Summary
ConstructorDescriptionPullParserFeatureReader
(org.geotools.xsd.Configuration wfsConfiguration, InputStream getFeatureResponseStream, org.geotools.api.feature.type.FeatureType featureType, String axisOrder) PullParserFeatureReader
(org.geotools.xsd.Configuration wfsConfiguration, InputStream getFeatureResponseStream, org.geotools.api.feature.type.FeatureType featureType, String axisOrder, org.geotools.http.HTTPClient client) Initialise a feature reader with the used http client, to ensure reuse of the configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
org.geotools.api.feature.type.FeatureType
int
org.geotools.api.feature.simple.SimpleFeature
parse()
void
setContextCustomizer
(org.geotools.xsd.impl.ParserHandler.ContextCustomizer contextCustomizer) void
setGeometryFactory
(org.locationtech.jts.geom.GeometryFactory geometryFactory)
-
Constructor Details
-
PullParserFeatureReader
public PullParserFeatureReader(org.geotools.xsd.Configuration wfsConfiguration, InputStream getFeatureResponseStream, org.geotools.api.feature.type.FeatureType featureType, String axisOrder) throws IOException - Throws:
IOException
-
PullParserFeatureReader
public PullParserFeatureReader(org.geotools.xsd.Configuration wfsConfiguration, InputStream getFeatureResponseStream, org.geotools.api.feature.type.FeatureType featureType, String axisOrder, org.geotools.http.HTTPClient client) throws IOException Initialise a feature reader with the used http client, to ensure reuse of the configuration.
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
close
in interfaceorg.geotools.data.wfs.internal.GetParser<org.geotools.api.feature.simple.SimpleFeature>
- Throws:
IOException
- See Also:
-
GetParser.close()
-
parse
- Specified by:
parse
in interfaceorg.geotools.data.wfs.internal.GetParser<org.geotools.api.feature.simple.SimpleFeature>
- Throws:
IOException
- See Also:
-
GetParser.parse()
-
getNumberOfFeatures
public int getNumberOfFeatures()- Specified by:
getNumberOfFeatures
in interfaceorg.geotools.data.wfs.internal.GetParser<org.geotools.api.feature.simple.SimpleFeature>
- See Also:
-
GetParser.getNumberOfFeatures()
-
getFeatureType
public org.geotools.api.feature.type.FeatureType getFeatureType()- Specified by:
getFeatureType
in interfaceorg.geotools.data.wfs.internal.GetParser<org.geotools.api.feature.simple.SimpleFeature>
-
setGeometryFactory
public void setGeometryFactory(org.locationtech.jts.geom.GeometryFactory geometryFactory) - Specified by:
setGeometryFactory
in interfaceorg.geotools.data.wfs.internal.GetParser<org.geotools.api.feature.simple.SimpleFeature>
-
setContextCustomizer
public void setContextCustomizer(org.geotools.xsd.impl.ParserHandler.ContextCustomizer contextCustomizer)
-