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
ConstructorsConstructorDescriptionCreates a newTLcdUPSGridfor the North pole.TLcdUPSGrid(boolean aNorthPole) Creates a newTLcdUPSGridfor the given pole. -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanReturns whether the UPS zone is defined for the North pole, iftrue, or for the South pole, iffalse.voidloadProperties(String aPrefix, Properties aProperties) This method will retrieve the properties of thisTLcdUPSGrid, based on the givenPropertiesobject and the given prefix.voidsetFalseEasting(double aFalseEasting) Sets thefalseEastingof theTLcdGridReferencetoaFalseEasting.voidsetFalseNorthing(double aFalseNorthing) Sets thefalseNorthingof theTLcdGridReferencetoaFalseNorthing.voidsetNorthPole(boolean aNorthPole) Sets the pole of the UPS zone.voidsetRotation(double aRotation) Sets the rotation of thisILcdGridReferencein radians, clockwise.voidsetScale(double aScale) Sets thescaleof theTLcdGridReferencetoaScale.voidsetUnitOfMeasure(double aUnitOfMeasure) Sets the UnitOfMeasure of theTLcdGridReferencetoaUnitOfMeasure.voidwritePropertiesSFCT(String aPrefix, Properties aPropertiesSFCT) Stores the properties that define this model reference into the specifiedPropertiesobject 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, toStringMethods inherited from class com.luciad.reference.ALcdGeoReference
getGeodeticDatum, getModelReferenceMetadata, setGeodeticDatum, setModelReferenceMetadata, setNameMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.reference.ILcdGeoReference
getGeodeticDatum
-
Constructor Details
-
TLcdUPSGrid
public TLcdUPSGrid()Creates a newTLcdUPSGridfor the North pole. -
TLcdUPSGrid
public TLcdUPSGrid(boolean aNorthPole) Creates a newTLcdUPSGridfor 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:TLcdGridReferenceSets thefalseEastingof theTLcdGridReferencetoaFalseEasting.- Overrides:
setFalseEastingin 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:TLcdGridReferenceSets thefalseNorthingof theTLcdGridReferencetoaFalseNorthing.- Overrides:
setFalseNorthingin 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:TLcdGridReferenceSets thescaleof theTLcdGridReferencetoaScale.- Overrides:
setScalein classTLcdGridReference- Parameters:
aScale- the new scale value for this reference.- See Also:
-
setUnitOfMeasure
public void setUnitOfMeasure(double aUnitOfMeasure) Description copied from class:TLcdGridReferenceSets the UnitOfMeasure of theTLcdGridReferencetoaUnitOfMeasure.- Overrides:
setUnitOfMeasurein classTLcdGridReference- Parameters:
aUnitOfMeasure- the new unitOfMeasure of thisILcdGridReferencew.r.t. meters.- See Also:
-
setRotation
public void setRotation(double aRotation) Description copied from class:TLcdGridReferenceSets the rotation of thisILcdGridReferencein radians, clockwise. The center of the rotation is the origin of the map projection.- Overrides:
setRotationin classTLcdGridReference- Parameters:
aRotation- the new rotation value for this reference.- See Also:
-
loadProperties
This method will retrieve the properties of thisTLcdUPSGrid, based on the givenPropertiesobject 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:
loadPropertiesin interfaceILcdModelReference- Overrides:
loadPropertiesin 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:ILcdModelReferenceStores the properties that define this model reference into the specifiedPropertiesobject as a side effect. Each particular implementation of this interface can define which properties it stores.- Specified by:
writePropertiesSFCTin interfaceILcdModelReference- Overrides:
writePropertiesSFCTin 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:
getNamein classALcdGeoReference
-