edu.d.umn.geometry
Class GroundCoordinates

java.lang.Object
  extended by edu.d.umn.geometry.GroundCoordinates

public class GroundCoordinates
extends java.lang.Object

This class is used to store the ground coordinates of a terrain data segment the latitude and longitude of each corner of the terrain area are stored in arc-second units


Field Summary
static int LATITUDE
          index of latitude part of coordinate.
static int LONGITUDE
          index of longitude part of coordinate.
static double METERS_PER_NAUTICAL_MILE
          Number of meters in a nautical mile.
static double METERS_PER_NAUTICAL_SECOND
          Number of meters in a nautical second.
static double NAUTICAL_SECONDS_PER_METER
          Number of nautical seconds in a meter.
 double[] ne
          latitude and longitude of north east coordinate.
 double[] nw
          latitude and longitude of north west coordinate.
 double[] se
          latitude and longitude of south east coordinate.
static double SECONDS_PER_NAUTICAL_MILE
          Number of seconds in a nautical mile.
 double[] sw
          latitude and longitude of south west coordinate.
 
Constructor Summary
GroundCoordinates()
          create ground coordinate object with all values set to null
 
Method Summary
 float lengthMeters()
          calculate the length (east to west) of the segment
 float lengthSeconds()
          calculate the length (east to west) of the segment
 java.lang.String toString()
          convert to string for display purposes
 float widthMeters()
          calculate the width (south to north ) of the segment
 float widthSeconds()
          calculate the width (south to north ) of the segment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sw

public double[] sw
latitude and longitude of south west coordinate.


nw

public double[] nw
latitude and longitude of north west coordinate.


ne

public double[] ne
latitude and longitude of north east coordinate.


se

public double[] se
latitude and longitude of south east coordinate.


LONGITUDE

public static final int LONGITUDE
index of longitude part of coordinate.

See Also:
Constant Field Values

LATITUDE

public static final int LATITUDE
index of latitude part of coordinate.

See Also:
Constant Field Values

SECONDS_PER_NAUTICAL_MILE

public static final double SECONDS_PER_NAUTICAL_MILE
Number of seconds in a nautical mile.

See Also:
Constant Field Values

METERS_PER_NAUTICAL_MILE

public static final double METERS_PER_NAUTICAL_MILE
Number of meters in a nautical mile.

See Also:
Constant Field Values

METERS_PER_NAUTICAL_SECOND

public static final double METERS_PER_NAUTICAL_SECOND
Number of meters in a nautical second.

See Also:
Constant Field Values

NAUTICAL_SECONDS_PER_METER

public static final double NAUTICAL_SECONDS_PER_METER
Number of nautical seconds in a meter.

See Also:
Constant Field Values
Constructor Detail

GroundCoordinates

public GroundCoordinates()
create ground coordinate object with all values set to null

Method Detail

lengthMeters

public float lengthMeters()
calculate the length (east to west) of the segment

Returns:
the east-west distance in meters

widthMeters

public float widthMeters()
calculate the width (south to north ) of the segment

Returns:
the south to north distance in meters

lengthSeconds

public float lengthSeconds()
calculate the length (east to west) of the segment

Returns:
the east-west distance in seconds

widthSeconds

public float widthSeconds()
calculate the width (south to north ) of the segment

Returns:
the south to north distance in seconds

toString

public java.lang.String toString()
convert to string for display purposes

Overrides:
toString in class java.lang.Object
Returns:
string representation of the coordinates