hydroScalingAPI.tools
Class DegreesToDMS

java.lang.Object
  extended by hydroScalingAPI.tools.DegreesToDMS

public abstract class DegreesToDMS
extends java.lang.Object

An abstract class to manipulate tranformations of value representation of geographic coordinates to nicely formated string

Author:
Ricardo Mantilla

Field Summary
static int LATITUDE
          The identifier for Latitude string
static int LONGITUDE
          The identifier for Longitude string
 
Constructor Summary
DegreesToDMS()
           
 
Method Summary
static java.lang.String getprettyString(double degrees, int type)
          Takes in a double in degrees units and a type (0 for Latitude or 1 for Longitudes) and returns a formated string
static java.lang.String getprettyString(float degrees, int type)
          Takes in a float in degrees units and a type (0 for Latitude or 1 for Longitudes) and returns a formated string
static void main(java.lang.String[] args)
          Tests for the class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LATITUDE

public static int LATITUDE
The identifier for Latitude string


LONGITUDE

public static int LONGITUDE
The identifier for Longitude string

Constructor Detail

DegreesToDMS

public DegreesToDMS()
Method Detail

getprettyString

public static java.lang.String getprettyString(double degrees,
                                               int type)
Takes in a double in degrees units and a type (0 for Latitude or 1 for Longitudes) and returns a formated string

Parameters:
degrees - The coordinate in degrees
type - The orientation of the coordinate
Returns:
A formated String

getprettyString

public static java.lang.String getprettyString(float degrees,
                                               int type)
Takes in a float in degrees units and a type (0 for Latitude or 1 for Longitudes) and returns a formated string

Parameters:
degrees - The coordinate in degrees
type - The orientation of the coordinate
Returns:
A formated String

main

public static void main(java.lang.String[] args)
Tests for the class

Parameters:
args - The command line arguments


CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.