vec_math
Class CentralProjection

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by vec_math.CentralProjection
All Implemented Interfaces:
Cloneable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, Projection

public abstract class CentralProjection
extends PropertyBundles
implements Projection

Abstract base class for sphere to planar projections. This class is only used for central projection, i.e. projections with a defined center of projection. The simpliest application is the orthonormal projection. The coordinate system used on the sphere is the longitude/latitude system, commonly used in astronomy and geography. Both coordinates are in degrees.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
static String KEY_CENTRALLATITUDE
          The key to the central longitude.
static String KEY_CENTRALLONGITUDE
          The key to the central longitude.
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
CentralProjection(double longcen, double laticen)
          Constructs a new AzimuthalProjection with given projectional center.
CentralProjection(Map<String,String> prop)
          Constructs a new AzimuthalProjection with given the given properties.
 
Method Summary
 boolean equals(Object that)
          Tests, if two central projections are equal.
 double getCentralLatitude()
          Returns the latitude of the center of projection.
 double getCentralLongitude()
          Returns the longitude of the center of projection.
 String toString()
          Converts this central projection into a String.
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
Methods inherited from class util.PropertyResources
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, init, keyCreate, keyCreate, reload, setApplet
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface vec_math.Projection
project
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
Methods inherited from interface util.PropertySupplying
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 
Methods inherited from interface util.Initializable
init
 

Field Detail

KEY_CENTRALLONGITUDE

public static final String KEY_CENTRALLONGITUDE
The key to the central longitude.

See Also:
Constant Field Values

KEY_CENTRALLATITUDE

public static final String KEY_CENTRALLATITUDE
The key to the central longitude.

See Also:
Constant Field Values
Constructor Detail

CentralProjection

public CentralProjection(Map<String,String> prop)
Constructs a new AzimuthalProjection with given the given properties.


CentralProjection

public CentralProjection(double longcen,
                         double laticen)
Constructs a new AzimuthalProjection with given projectional center.

Parameters:
longcen - Longitude of projection center, in degrees.
laticen - Latitude of projection center, in degrees.
Method Detail

getCentralLongitude

public double getCentralLongitude()
Returns the longitude of the center of projection.

Returns:
The longitude of the projection center in degrees.

getCentralLatitude

public double getCentralLatitude()
Returns the latitude of the center of projection.

Returns:
The latitude of the projection center in degrees.

equals

public boolean equals(Object that)
Tests, if two central projections are equal. Equality is given, if the central longitude and latitudes are equal.

Overrides:
equals in class Object

toString

public String toString()
Converts this central projection into a String.

Overrides:
toString in class PropertyContainer