Package com.luciad.projection
Class ALcdAzimuthal
java.lang.Object
com.luciad.projection.ALcdProjection
com.luciad.projection.ALcdAzimuthal
- All Implemented Interfaces:
ILcdAzimuthal,ILcdProjection,ILcdPropertyChangeSource,Serializable,Cloneable
- Direct Known Subclasses:
TLcdAzimuthalEquidistant,TLcdDutchStereographic,TLcdEllipsoidalLambertAzimuthalEqualArea,TLcdGnomonic,TLcdLambertAzimuthalEqualArea,TLcdObliqueStereographic,TLcdOrthographic,TLcdStereographic
ALcdAzimuthal projections are ILcdProjection objects that have
a central point of zero distortion. This central point is the origin of the
ALcdAzimuthal. The azimuth (direction) from the origin point to
any other point on the map is shown correctly.
An ALcdAzimuthal has an origin which is expressed in lat-lon
coordinates.
Tangent plane projections are examples of ALcdAzimuthal.

- See Also:
-
Field Summary
Fields inherited from class com.luciad.projection.ALcdProjection
fPropertyChangeDispatcherFields inherited from interface com.luciad.projection.ILcdProjection
EPSILON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConstants based on the point of origin of the projection don't have to be recalculated every time a method is called.clone()Makes a deep clone of thisILcdProjection.booleanChecks if thisILcdProjectionequals some other Object.Origin of the projection is theILcd2DEditablePointthat corresponds with origin (0, 0) of the cartesian coordinate system of the projection.doubleGets the latitude of the origin.doubleGets the longitude of the origin.inthashCode()booleanAnILcdProjectionis continuous if there are no interruptions in the world coordinates.voidloadProperties(String aPrefix, Properties aProperty) Loads the two properties of azimuthal projections.voidsetOriginLat(double aLatitude) Sets the latitude of the origin toaLatitude.voidsetOriginLon(double aLongitude) Sets the longitude of the origin toaLongitude.voidwritePropertiesSFCT(String aPrefix, Properties aPropertySFCT) Writes the two properties of azimuthal projections.Methods inherited from class com.luciad.projection.ALcdProjection
addPropertyChangeListener, boundaryLats, boundaryLons, firePropertyChangeEvent, inWorldBoundsOnEllipsoid, lonlatheight2worldOnEllipsoidSFCT, removePropertyChangeListener, world2DEditableBoundsOnEllipsoidSFCT, world2lonlatOnEllipsoidSFCTMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.projection.ILcdProjection
boundaryLats, boundaryLons, inLonLatBounds, inWorldBoundsOnEllipsoid, inWorldBoundsOnSphere, isAllInBounds, lonlatheight2worldOnEllipsoidSFCT, lonlatheight2worldOnSphereSFCT, toString, world2DEditableBoundsOnEllipsoidSFCT, world2DEditableBoundsOnSphereSFCT, world2lonlatOnEllipsoidSFCT, world2lonlatOnSphereSFCTMethods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
ALcdAzimuthal
public ALcdAzimuthal()
-
-
Method Details
-
setOriginLat
public void setOriginLat(double aLatitude) Description copied from interface:ILcdAzimuthalSets the latitude of the origin toaLatitude. Changing the origin of an azimuthal projection changes also its aspect. The normal aspect of an azimuthal projection corresponds to the origin at one of the poles. The transverse aspect corresponds to the origin on the equator. The oblique aspect corresponds to any other origin.- Specified by:
setOriginLatin interfaceILcdAzimuthal- Parameters:
aLatitude- The new originLat value.- See Also:
-
setOriginLon
public void setOriginLon(double aLongitude) Description copied from interface:ILcdAzimuthalSets the longitude of the origin toaLongitude.- Specified by:
setOriginLonin interfaceILcdAzimuthal- Parameters:
aLongitude- The new originLon value.- See Also:
-
getOrigin
Description copied from interface:ILcdProjectionOrigin of the projection is theILcd2DEditablePointthat corresponds with origin (0, 0) of the cartesian coordinate system of the projection.- Specified by:
getOriginin interfaceILcdProjection- Returns:
- the origin of the projection.
-
getOriginLat
public double getOriginLat()Description copied from interface:ILcdAzimuthalGets the latitude of the origin.- Specified by:
getOriginLatin interfaceILcdAzimuthal- Returns:
- the latitude of the origin.
- See Also:
-
getOriginLon
public double getOriginLon()Description copied from interface:ILcdAzimuthalGets the longitude of the origin.- Specified by:
getOriginLonin interfaceILcdAzimuthal- Returns:
- the longitude of the origin.
- See Also:
-
isContinuous
public boolean isContinuous()Description copied from interface:ILcdProjectionAnILcdProjectionis continuous if there are no interruptions in the world coordinates. Most projections are continuous.- Specified by:
isContinuousin interfaceILcdProjection- Returns:
trueif the projection is continuous,falseotherwise.
-
loadProperties
Loads the two properties of azimuthal projections. The longitude and latitude of the point of origin of the projection. This method will, given aPrefix, analyze the aProperties object to set the properties of thisALcdAzimuthal. The values of following keys are retrieved:- <aPrefix>.originLat
- <aPrefix>.originLon
- Specified by:
loadPropertiesin interfaceILcdProjection- Parameters:
aPrefix- prefix of the property names.aProperty- Properties object containing the serialized properties.- Throws:
IllegalArgumentException- if the projection cannot be created.
-
writePropertiesSFCT
Writes the two properties of azimuthal projections. The longitude and latitude of the point of origin of the projection. This method will, given aPrefix, store the properties of thisALcdAzimuthalinto the aPropertiesSFCT object. The values of following keys are stored:- <aPrefix>.originLat
- <aPrefix>.originLon
- Specified by:
writePropertiesSFCTin interfaceILcdProjection- Parameters:
aPrefix- prefix for the property names.aPropertySFCT- Properties object to store the serialized properties by side effect.
-
calculateCachedValues
protected void calculateCachedValues()Constants based on the point of origin of the projection don't have to be recalculated every time a method is called. They only have to be calculated when the projection properties change. Within the methods the pre-calculated values then can be used in order to gain efficiency. -
hashCode
public int hashCode() -
equals
Description copied from interface:ILcdProjectionChecks if thisILcdProjectionequals some other Object.- Specified by:
equalsin interfaceILcdProjection- Overrides:
equalsin classObject- Parameters:
aObject- Object to compare with.- Returns:
- true if the Object is an instance of the same
ILcdProjectionclass and having the same projection properties, false otherwise.
-
clone
Description copied from interface:ILcdProjectionMakes a deep clone of thisILcdProjection.- Specified by:
clonein interfaceILcdProjection- Overrides:
clonein classALcdProjection- Returns:
- deep clone of this
ILcdProjection.
-