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 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

      public void close() throws IOException
      Specified by:
      close in interface org.geotools.data.wfs.internal.GetParser<org.geotools.api.feature.simple.SimpleFeature>
      Throws:
      IOException
      See Also:
      • GetParser.close()
    • parse

      public org.geotools.api.feature.simple.SimpleFeature parse() throws IOException
      Specified by:
      parse in interface org.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 interface org.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 interface org.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 interface org.geotools.data.wfs.internal.GetParser<org.geotools.api.feature.simple.SimpleFeature>
    • setContextCustomizer

      public void setContextCustomizer(org.geotools.xsd.impl.ParserHandler.ContextCustomizer contextCustomizer)