Class GshhsReader
- java.lang.Object
-
- com.metsci.glimpse.charts.shoreline.gshhs.GshhsReader
-
public class GshhsReader extends Object
The GSHHS dataset can be downloaded from ftp://ftp.soest.hawaii.edu/pwessel/gshhs/ .- Author:
- hogye
-
-
Constructor Summary
Constructors Constructor Description GshhsReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Pair<List<List<LandVertex>>,List<GshhsPolygonHeader>>readSegments(File file)static Pair<List<List<LandVertex>>,List<GshhsPolygonHeader>>readSegments(InputStream stream)Closing the stream is left up to the caller.static Pair<List<List<LandVertex>>,List<GshhsPolygonHeader>>readSegments(URL url)
-
-
-
Method Detail
-
readSegments
public static Pair<List<List<LandVertex>>,List<GshhsPolygonHeader>> readSegments(File file) throws IOException
- Throws:
IOException
-
readSegments
public static Pair<List<List<LandVertex>>,List<GshhsPolygonHeader>> readSegments(URL url) throws IOException
- Throws:
IOException
-
readSegments
public static Pair<List<List<LandVertex>>,List<GshhsPolygonHeader>> readSegments(InputStream stream) throws IOException
Closing the stream is left up to the caller.- Throws:
IOException
-
-