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

java.lang.Object
  extended by com.metsci.glimpse.charts.shoreline.LandFile
      extended by com.metsci.glimpse.charts.shoreline.gshhs.GshhsFile
All Implemented Interfaces:
LandShapeCapable

public class GshhsFile
extends LandFile

The class can parse GSHHS version 1 files. The GSHHS dataset can be downloaded from ftp://ftp.soest.hawaii.edu/pwessel/gshhs/ . An alternate source: http://www.ngdc.noaa.gov/mgg/shorelines/data/gshhs/oldversions/

Author:
hogye

Constructor Summary
GshhsFile(java.io.File file, LandBox box)
           
GshhsFile(java.io.File file, LatLonGeo swCorner, LatLonGeo neCorner)
           
GshhsFile(java.io.InputStream stream, LandBox box, boolean isLittleEndian)
           
 
Method Summary
static Pair<java.util.List<java.util.List<LandVertex>>,java.util.List<GshhsPolygonHeader>> readSegments(java.io.File file, LandBox box)
          Deprecated. 
 
Methods inherited from class com.metsci.glimpse.charts.shoreline.LandFile
toShape
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GshhsFile

public GshhsFile(java.io.File file,
                 LatLonGeo swCorner,
                 LatLonGeo neCorner)
          throws java.io.IOException,
                 GshhsPolygonHeader.UnrecognizedValueException
Throws:
java.io.IOException
GshhsPolygonHeader.UnrecognizedValueException

GshhsFile

public GshhsFile(java.io.File file,
                 LandBox box)
          throws java.io.IOException,
                 GshhsPolygonHeader.UnrecognizedValueException
Throws:
java.io.IOException
GshhsPolygonHeader.UnrecognizedValueException

GshhsFile

public GshhsFile(java.io.InputStream stream,
                 LandBox box,
                 boolean isLittleEndian)
          throws java.io.IOException,
                 GshhsPolygonHeader.UnrecognizedValueException
Throws:
java.io.IOException
GshhsPolygonHeader.UnrecognizedValueException
Method Detail

readSegments

@Deprecated
public static Pair<java.util.List<java.util.List<LandVertex>>,java.util.List<GshhsPolygonHeader>> readSegments(java.io.File file,
                                                                                                                          LandBox box)
                                                                                                        throws java.io.IOException,
                                                                                                               GshhsPolygonHeader.UnrecognizedValueException
Deprecated. 

Deprecated in favor of GshhsReader.readSegments(File).

Throws:
java.io.IOException
GshhsPolygonHeader.UnrecognizedValueException


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