Class CoastlineInfo

java.lang.Object
  extended byCoastlineInfo

public class CoastlineInfo
extends java.lang.Object

Represents coastline shapes. It is a Singleton.

Author:
Lulin Song

Method Summary
 java.util.Vector getCoastlineShapesWithinRange(float maxLat, float maxLon, float minLat, float minLon)
          Get a coastline shape within the bounding box.
 java.util.Vector getCoastlineShapesWithinRange(StationInfo info)
          Get a coastline shape cover all stations.
static CoastlineInfo getInstance(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CoastlineInfo getInstance(java.lang.String fileName)

getCoastlineShapesWithinRange

public java.util.Vector getCoastlineShapesWithinRange(float maxLat,
                                                      float maxLon,
                                                      float minLat,
                                                      float minLon)
Get a coastline shape within the bounding box.

Parameters:
maxLat - maximum latitude of bounding box.
maxLon - maximum longitude of bounding box.
minLat - minimum latitude of bounding box.
minLon - minimum longitude of bounding box.
Returns:
a vector of coastline shapes.

getCoastlineShapesWithinRange

public java.util.Vector getCoastlineShapesWithinRange(StationInfo info)
Get a coastline shape cover all stations.

Parameters:
info - station information
Returns:
a vector of coastline shapes.