Class ESRIShapefileReader

java.lang.Object
noaa.coastwatch.render.feature.ESRIShapefileReader

public class ESRIShapefileReader extends Object

The ESRIShapefileReader class reads geographic features from ESRI shapefile data and presents the data as an EarthDataOverlay object. ESRI shapefile format files may contain a number of different types of feature geometries, including points, polylines, and polygons. The reader getOverlay() method returns an overlay that is appropriate to the feature geometry.

As of version 3.5.1, this class uses the Java ESRI Shape File Reader library available from:

   https://sourceforge.net/projects/javashapefilere/
 
Additional information on ESRI shapefiles and a technical description of the format may be obtained from the ESRI web site:
   http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf
 
Since:
3.1.9
Author:
Peter Hollemans
  • Constructor Details

    • ESRIShapefileReader

      public ESRIShapefileReader(URL shapeURL) throws IOException
      Creates a new shapefile reader using a URL.
      Parameters:
      shapeURL - the URL for the shape file.
      Throws:
      IOException
  • Method Details

    • getOverlay

      public EarthDataOverlay getOverlay()
      Gets the overlay created from the shapefile.
      Returns:
      the overlay created from the shapes read.
    • main

      public static void main(String[] argv) throws Exception
      Tests this class.
      Parameters:
      argv - the array of command line parameters.
      Throws:
      Exception