net.agmodel.demdata
Class GridFloatImpl

java.lang.Object
  |
  +--net.agmodel.demdata.GridLayerImpl
        |
        +--net.agmodel.demdata.GridFloatImpl
All Implemented Interfaces:
GridLayer, Serializable, ServerResult

public class GridFloatImpl
extends GridLayerImpl

See Also:
Serialized Form

Field Summary
static float SEA
           
 
Fields inherited from class net.agmodel.demdata.GridLayerImpl
latitudeRes, longitudeRes, region
 
Constructor Summary
GridFloatImpl(GeographicalBox region, double latRes, double longRes, DEMSourceDetail sourceDetails)
           
 
Method Summary
 double get(double latitude, double longitude)
           
 boolean isLand(double latitude, double longitude)
           
 void markAsSea(int xIndex, int yIndex)
           
 void markAsSea(Location l)
           
 void putData(int xIndex, int yIndex, float[] input)
           
 void putData(Location l)
           
 String toString()
           
 
Methods inherited from class net.agmodel.demdata.GridLayerImpl
get, getBounds, getEast, getLatitude, getLatitudeRes, getLatitudeSpread, getLongitude, getLongitudeRes, getLongitudeSpread, getNearestPointTo, getNorth, getNorthWest, getnX, getnY, getSourceDetail, getSouth, getSouthEast, getWest, getXIndex, getYIndex, setSourceDetail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEA

public static final float SEA
See Also:
Constant Field Values
Constructor Detail

GridFloatImpl

public GridFloatImpl(GeographicalBox region,
                     double latRes,
                     double longRes,
                     DEMSourceDetail sourceDetails)
Method Detail

putData

public void putData(Location l)

markAsSea

public void markAsSea(Location l)

markAsSea

public void markAsSea(int xIndex,
                      int yIndex)

putData

public void putData(int xIndex,
                    int yIndex,
                    float[] input)

get

public double get(double latitude,
                  double longitude)

isLand

public boolean isLand(double latitude,
                      double longitude)
Specified by:
isLand in interface GridLayer
Specified by:
isLand in class GridLayerImpl

toString

public String toString()
Overrides:
toString in class Object