Package org.codice.ddf.spatial.geocoding
Interface FeatureExtractor
public interface FeatureExtractor
A
FeatureExtractor provides methods for extracting SimpleFeature objects from
various resources.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidpushFeaturesToExtractionCallback(String resource, FeatureExtractor.ExtractionCallback extractionCallback) Extracts geographic features from a resource asSimpleFeatureobjects and passes each through the callbackextractionCallback.
-
Method Details
-
pushFeaturesToExtractionCallback
void pushFeaturesToExtractionCallback(String resource, FeatureExtractor.ExtractionCallback extractionCallback) throws FeatureExtractionException Extracts geographic features from a resource asSimpleFeatureobjects and passes each through the callbackextractionCallback. The callback is called exactly once for eachSimpleFeatureobject 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 extractedSimpleFeatureobject, must not be null- Throws:
IllegalArgumentException- ifextractionCallbackis nullFeatureExtractionException- if an error occurs while extracting features from the resource
-