com.metsci.glimpse.charts.shoreline.gshhs
Class GshhsReader

java.lang.Object
  extended by com.metsci.glimpse.charts.shoreline.gshhs.GshhsReader

public class GshhsReader
extends java.lang.Object

The GSHHS dataset can be downloaded from ftp://ftp.soest.hawaii.edu/pwessel/gshhs/ .

Author:
hogye

Constructor Summary
GshhsReader()
           
 
Method Summary
static Pair<java.util.List<java.util.List<LandVertex>>,java.util.List<GshhsPolygonHeader>> readSegments(java.io.File file)
           
static Pair<java.util.List<java.util.List<LandVertex>>,java.util.List<GshhsPolygonHeader>> readSegments(java.io.InputStream stream)
          Closing the stream is left up to the caller.
static Pair<java.util.List<java.util.List<LandVertex>>,java.util.List<GshhsPolygonHeader>> readSegments(java.lang.String location, StreamOpener streamOpener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GshhsReader

public GshhsReader()
Method Detail

readSegments

public static Pair<java.util.List<java.util.List<LandVertex>>,java.util.List<GshhsPolygonHeader>> readSegments(java.io.File file)
                                                                                                        throws java.io.IOException
Throws:
java.io.IOException

readSegments

public static Pair<java.util.List<java.util.List<LandVertex>>,java.util.List<GshhsPolygonHeader>> readSegments(java.lang.String location,
                                                                                                               StreamOpener streamOpener)
                                                                                                        throws java.io.IOException
Throws:
java.io.IOException

readSegments

public static Pair<java.util.List<java.util.List<LandVertex>>,java.util.List<GshhsPolygonHeader>> readSegments(java.io.InputStream stream)
                                                                                                        throws java.io.IOException
Closing the stream is left up to the caller.

Throws:
java.io.IOException


Copyright © 2012 Metron, Inc.. All Rights Reserved.