Class ShapefileProcessor

java.lang.Object
com.reallifedeveloper.tools.gis.ShapefileProcessor

public final class ShapefileProcessor extends Object
Reads a shapefile and processes it in some way.

One example of use is to create a version that converts a shapefile into SQL insert statements.

Author:
RealLifeDeveloper
  • Field Details

    • DEFAULT_CHARACTER_ENCODING

      public static final String DEFAULT_CHARACTER_ENCODING
      The character encoding that is used by default, "UTF-8".
      See Also:
  • Constructor Details

  • Method Details

    • processShapefile

      public void processShapefile(URL shapefileUrl) throws IOException
      Processes a shapefile read from the given URL with the given ShapefileProcessor.FeatureProcessor that determines what to do with each individual org.opengis.feature.Feature in the file.
      Parameters:
      shapefileUrl - a URL to the shapefile
      Throws:
      IOException - if there was a problem reading the shapefile
    • setCharacterEncoding

      public void setCharacterEncoding(String newCharacterEncoding)
      Sets the character encoding to use in the shapefile that is created.
      Parameters:
      newCharacterEncoding - the new character encoding