Interface FeatureExtractor


public interface FeatureExtractor
A FeatureExtractor provides methods for extracting SimpleFeature objects from various resources.
  • Method Details

    • pushFeaturesToExtractionCallback

      void pushFeaturesToExtractionCallback(String resource, FeatureExtractor.ExtractionCallback extractionCallback) throws FeatureExtractionException
      Extracts geographic features from a resource as SimpleFeature objects and passes each through the callback extractionCallback. The callback is called exactly once for each SimpleFeature object extracted from the resource.
      Parameters:
      resource - identifier for the resource containing geographic features. The implementation decides how to resolve it (filesystem, url, etc).
      extractionCallback - the callback that receives each extracted SimpleFeature object, must not be null
      Throws:
      IllegalArgumentException - if extractionCallback is null
      FeatureExtractionException - if an error occurs while extracting features from the resource