Package noaa.coastwatch.render.feature
Class ESRIShapefileReader
java.lang.Object
noaa.coastwatch.render.feature.ESRIShapefileReader
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 Summary
ConstructorDescriptionESRIShapefileReader
(URL shapeURL) Creates a new shapefile reader using a URL. -
Method Summary
Modifier and TypeMethodDescriptionGets the overlay created from the shapefile.static void
Tests this class.
-
Constructor Details
-
ESRIShapefileReader
Creates a new shapefile reader using a URL.- Parameters:
shapeURL
- the URL for the shape file.- Throws:
IOException
-
-
Method Details
-
getOverlay
Gets the overlay created from the shapefile.- Returns:
- the overlay created from the shapes read.
-
main
Tests this class.- Parameters:
argv
- the array of command line parameters.- Throws:
Exception
-