Class Shape2Sql.BarFeatureProcessor

java.lang.Object
com.reallifedeveloper.tools.gis.Shape2Sql.BarFeatureProcessor
All Implemented Interfaces:
ShapefileProcessor.FeatureProcessor
Enclosing class:
Shape2Sql

public static class Shape2Sql.BarFeatureProcessor extends Object implements ShapefileProcessor.FeatureProcessor
Interprets a org.opengis.feature.Feature from a shapefile with bar information and processes it with a Shape2Sql.BarProcessor.
  • Field Details

    • ATTRIBUTE_NAME

      public static final String ATTRIBUTE_NAME
      The name of the attribute in the shapefile that contains the name.
      See Also:
    • ATTRIBUTE_URL

      public static final String ATTRIBUTE_URL
      The name of the attribute in the shapefile that contains the URL.
      See Also:
    • ATTRIBUTE_GEOMETRY

      public static final String ATTRIBUTE_GEOMETRY
      The name of the attribute in the shapefile that contains the geometric shape.
      See Also:
  • Constructor Details

    • BarFeatureProcessor

      public BarFeatureProcessor(Shape2Sql.BarProcessor barProcessor)
      Creates a new BarFeatureProcessor that uses the given Shape2Sql.BarProcessor to process a Feature.
      Parameters:
      barProcessor - the BarProcessor to use, must not be null
  • Method Details

    • processFeature

      public void processFeature(org.geotools.api.feature.Feature feature)
      Reads bar information from a org.opengis.feature.Feature and processes this information with the current Shape2Sql.BarProcessor.
      Specified by:
      processFeature in interface ShapefileProcessor.FeatureProcessor
      Parameters:
      feature - the Feature to process with the current BarProcessor