Jeospace API

org.jeospace.geometry
Class EllipsoidCatalog

java.lang.Object
  extended byorg.jeospace.geometry.EllipsoidCatalog

public class EllipsoidCatalog
extends java.lang.Object

Factory and repository of Ellipsoids referenced by id.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton

Constructor Summary
protected EllipsoidCatalog()
          Protected Constructor
 
Method Summary
static Ellipsoid get(java.lang.String id)
          Return the Ellipsoid that matches the id string
static Ellipsoid[] getEllipsoids()
          Return an array of the defined Ellipsoid objects
static java.lang.String[] getIDs()
          Return the list of cataloged ellipsoid ids.
static Ellipsoid getInstance(Length semiMajorAxis, double inverseFlattening, java.lang.String id)
          Return an Ellipsoid instance
static Ellipsoid getInstance(Length semiMajorAxis, Length semiMinorAxis, java.lang.String id)
          Return an Ellipsoid instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EllipsoidCatalog

protected EllipsoidCatalog()
Protected Constructor

Method Detail

get

public static Ellipsoid get(java.lang.String id)
Return the Ellipsoid that matches the id string

Parameters:
id - the id of the Ellipsoid to return
Returns:
the Ellipsoid, or null if the is does not match any Ellipsoids in the catalog.

getInstance

public static Ellipsoid getInstance(Length semiMajorAxis,
                                    Length semiMinorAxis,
                                    java.lang.String id)
Return an Ellipsoid instance

Parameters:
semiMajorAxis - the equatorial ( Semi-Major Axis ) radius.
semiMinorAxis - the polar ( Semi-Minor Axis ) radius.
id - the id string

getInstance

public static Ellipsoid getInstance(Length semiMajorAxis,
                                    double inverseFlattening,
                                    java.lang.String id)
Return an Ellipsoid instance

Parameters:
semiMajorAxis - the equatorial ( Semi-Major Axis ) radius.
inverseFlattening - the inverse flattening of the ellipsoid.
id - the id string

getIDs

public static java.lang.String[] getIDs()
Return the list of cataloged ellipsoid ids.

Returns:
the array of id strings of the cataloged ellipsoids.

getEllipsoids

public static Ellipsoid[] getEllipsoids()
Return an array of the defined Ellipsoid objects

Returns:
the array of the defined Ellipsoid objects

Jeospace API

Copyright © 2006 - jeospace.org