Class GeoCoderPlugin

java.lang.Object
org.codice.ddf.spatial.geocoding.plugin.GeoCoderPlugin
All Implemented Interfaces:
ddf.catalog.plugin.PreIngestPlugin

public class GeoCoderPlugin extends Object implements ddf.catalog.plugin.PreIngestPlugin
The GeoCoderPlugin is responsible for adding a Location.COUNTRY_CODE in ISO 3166-1 format to Metacards that have the Metacard.GEOGRAPHY attribute.
  • Field Details

  • Constructor Details

    • GeoCoderPlugin

      public GeoCoderPlugin(ServiceSelector<org.codice.ddf.spatial.geocoder.GeoCoder> geoCoderFactory)
  • Method Details

    • process

      public ddf.catalog.operation.CreateRequest process(ddf.catalog.operation.CreateRequest input) throws ddf.catalog.plugin.PluginExecutionException, ddf.catalog.plugin.StopProcessingException
      Specified by:
      process in interface ddf.catalog.plugin.PreIngestPlugin
      Throws:
      ddf.catalog.plugin.PluginExecutionException
      ddf.catalog.plugin.StopProcessingException
    • process

      public ddf.catalog.operation.UpdateRequest process(ddf.catalog.operation.UpdateRequest input) throws ddf.catalog.plugin.PluginExecutionException, ddf.catalog.plugin.StopProcessingException
      Specified by:
      process in interface ddf.catalog.plugin.PreIngestPlugin
      Throws:
      ddf.catalog.plugin.PluginExecutionException
      ddf.catalog.plugin.StopProcessingException
    • process

      public ddf.catalog.operation.DeleteRequest process(ddf.catalog.operation.DeleteRequest input) throws ddf.catalog.plugin.PluginExecutionException, ddf.catalog.plugin.StopProcessingException
      Specified by:
      process in interface ddf.catalog.plugin.PreIngestPlugin
      Throws:
      ddf.catalog.plugin.PluginExecutionException
      ddf.catalog.plugin.StopProcessingException
    • updateConfiguration

      public void updateConfiguration(Map<String,Object> properties)
    • setRadiusInKm

      public void setRadiusInKm(int radius)
    • getRadius

      public int getRadius()