Package com.luciad.reference
Class TLcdUPSGrid
java.lang.Object
com.luciad.reference.ALcdGeoReference
com.luciad.reference.TLcdGridReference
com.luciad.reference.TLcdUPSGrid
- All Implemented Interfaces:
ILcdExtendedModelReference
,ILcdModelReference
,ILcdGeoReference
,ILcdGridReference
,ILcdCloneable
,ILcdXYWorldReference
,ILcdXYZWorldReference
,Serializable
,Cloneable
This
ILcdGridReference
represents a UPS grid reference.
It is characterized by a boolean flag northPole, which specifies the pole.- See Also:
-
Field Summary
Fields inherited from interface com.luciad.reference.ILcdGeoReference
CARTESIAN, GEODETIC
-
Constructor Summary
ConstructorDescriptionCreates a newTLcdUPSGrid
for the North pole.TLcdUPSGrid
(boolean aNorthPole) Creates a newTLcdUPSGrid
for the given pole. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
boolean
Returns whether the UPS zone is defined for the North pole, iftrue
, or for the South pole, iffalse
.void
loadProperties
(String aPrefix, Properties aProperties) This method will retrieve the properties of thisTLcdUPSGrid
, based on the givenProperties
object and the given prefix.void
setFalseEasting
(double aFalseEasting) Sets thefalseEasting
of theTLcdGridReference
toaFalseEasting
.void
setFalseNorthing
(double aFalseNorthing) Sets thefalseNorthing
of theTLcdGridReference
toaFalseNorthing
.void
setNorthPole
(boolean aNorthPole) Sets the pole of the UPS zone.void
setRotation
(double aRotation) Sets the rotation of thisILcdGridReference
in radians, clockwise.void
setScale
(double aScale) Sets thescale
of theTLcdGridReference
toaScale
.void
setUnitOfMeasure
(double aUnitOfMeasure) Sets the UnitOfMeasure of theTLcdGridReference
toaUnitOfMeasure
.void
writePropertiesSFCT
(String aPrefix, Properties aPropertiesSFCT) Stores the properties that define this model reference into the specifiedProperties
object as a side effect.Methods inherited from class com.luciad.reference.TLcdGridReference
clone, equals, get2DEditableBounds, getCoordinateType, getCosRotation, getFalseEasting, getFalseNorthing, getProjection, getRotation, getScale, getSinRotation, getUnitOfMeasure, hashCode, isBoundsAvailable, makeModelPoint, setProjection, toString
Methods inherited from class com.luciad.reference.ALcdGeoReference
getGeodeticDatum, getModelReferenceMetadata, setGeodeticDatum, setModelReferenceMetadata, setName
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.reference.ILcdGeoReference
getGeodeticDatum
-
Constructor Details
-
TLcdUPSGrid
public TLcdUPSGrid()Creates a newTLcdUPSGrid
for the North pole. -
TLcdUPSGrid
public TLcdUPSGrid(boolean aNorthPole) Creates a newTLcdUPSGrid
for the given pole.- Parameters:
aNorthPole
- specifies the North pole, iftrue
, or the South pole, iffalse
.
-
-
Method Details
-
isNorthPole
public boolean isNorthPole()Returns whether the UPS zone is defined for the North pole, iftrue
, or for the South pole, iffalse
.- Returns:
- whether the UPS zone is defined for the North pole,
if
true
, or for the South pole, iffalse
.
-
setNorthPole
public void setNorthPole(boolean aNorthPole) Sets the pole of the UPS zone.- Parameters:
aNorthPole
- specifies the North pole, iftrue
, or the South pole, iffalse
.
-
setFalseEasting
public void setFalseEasting(double aFalseEasting) Description copied from class:TLcdGridReference
Sets thefalseEasting
of theTLcdGridReference
toaFalseEasting
.- Overrides:
setFalseEasting
in classTLcdGridReference
- Parameters:
aFalseEasting
- the new false easting value for this reference (defined in the unit of measure of this reference).- See Also:
-
setFalseNorthing
public void setFalseNorthing(double aFalseNorthing) Description copied from class:TLcdGridReference
Sets thefalseNorthing
of theTLcdGridReference
toaFalseNorthing
.- Overrides:
setFalseNorthing
in classTLcdGridReference
- Parameters:
aFalseNorthing
- the new false northing value for this reference (defined in the unit of measure of this reference).- See Also:
-
setScale
public void setScale(double aScale) Description copied from class:TLcdGridReference
Sets thescale
of theTLcdGridReference
toaScale
.- Overrides:
setScale
in classTLcdGridReference
- Parameters:
aScale
- the new scale value for this reference.- See Also:
-
setUnitOfMeasure
public void setUnitOfMeasure(double aUnitOfMeasure) Description copied from class:TLcdGridReference
Sets the UnitOfMeasure of theTLcdGridReference
toaUnitOfMeasure
.- Overrides:
setUnitOfMeasure
in classTLcdGridReference
- Parameters:
aUnitOfMeasure
- the new unitOfMeasure of thisILcdGridReference
w.r.t. meters.- See Also:
-
setRotation
public void setRotation(double aRotation) Description copied from class:TLcdGridReference
Sets the rotation of thisILcdGridReference
in radians, clockwise. The center of the rotation is the origin of the map projection.- Overrides:
setRotation
in classTLcdGridReference
- Parameters:
aRotation
- the new rotation value for this reference.- See Also:
-
loadProperties
This method will retrieve the properties of thisTLcdUPSGrid
, based on the givenProperties
object and the given prefix. The values of following optional keys are retrieved:- <aPrefix>.TLcdUPSGrid.northPole: true or false (default = true).
TLcdGeodeticDatumFactory
. The keys of those entries should begin with '<aPrefix>.TLcdUPSGrid.geodeticDatum.'.- Specified by:
loadProperties
in interfaceILcdModelReference
- Overrides:
loadProperties
in classTLcdGridReference
- Parameters:
aPrefix
- a common prefix for all property names that are read.aProperties
- the properties to be parsed.- Throws:
IllegalArgumentException
- if the model reference cannot be constructed from the properties.- See Also:
-
writePropertiesSFCT
public void writePropertiesSFCT(String aPrefix, Properties aPropertiesSFCT) throws IllegalArgumentException Description copied from interface:ILcdModelReference
Stores the properties that define this model reference into the specifiedProperties
object as a side effect. Each particular implementation of this interface can define which properties it stores.- Specified by:
writePropertiesSFCT
in interfaceILcdModelReference
- Overrides:
writePropertiesSFCT
in classTLcdGridReference
- Parameters:
aPrefix
- a common prefix for all property names written.aPropertiesSFCT
- the properties that will contain the serialized properties for this model reference, as a side effect.- Throws:
IllegalArgumentException
- if the model reference cannot be serialized into properties.- See Also:
-
getName
- Overrides:
getName
in classALcdGeoReference
-