public class ESRIShapefileReader
extends java.lang.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.
This class uses the GeoTools version 2 library for accessing shapefile data. GeoTools is available from:
http://www.geotools.orgAdditional 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
Modifier and Type | Class and Description |
---|---|
class |
ESRIShapefileReader.LineSource
The
LineSource class uses the enclosing reader to
provide line data to an overlay. |
class |
ESRIShapefileReader.PointSource
The
PointSource class uses the enclosing reader to
provide point data to an overlay. |
class |
ESRIShapefileReader.PolygonSource
The
PolygonSource class uses the enclosing reader to
provide polygon data to an overlay. |
Constructor and Description |
---|
ESRIShapefileReader(java.net.URL shapeURL)
Creates a new reader using a URL.
|
Modifier and Type | Method and Description |
---|---|
EarthDataOverlay |
getOverlay()
Gets the overlay created from the shapefile.
|
static void |
main(java.lang.String[] argv)
Tests this class.
|
public ESRIShapefileReader(java.net.URL shapeURL) throws java.io.IOException
java.io.IOException
public EarthDataOverlay getOverlay()
public static void main(java.lang.String[] argv) throws java.lang.Exception
argv
- the array of command line parameters.java.lang.Exception