Package com.luciad.reference
Class TLcdUTMGrid
java.lang.Object
com.luciad.reference.ALcdGeoReference
com.luciad.reference.TLcdGridReference
com.luciad.reference.TLcdUTMGrid
- All Implemented Interfaces:
ILcdExtendedModelReference,ILcdModelReference,ILcdGeoReference,ILcdGridReference,ILcdCloneable,ILcdXYWorldReference,ILcdXYZWorldReference,Serializable,Cloneable
This
ILcdGridReference represents a UTM grid reference.
It is characterized by zoneID, which is a value between 1 and
60, inclusive, and a boolean flag northernHemisphere, which
specifies the hemisphere.
Zone n corresponds to the region with longitudes ranging from
6*(n-31) degrees to * 6*(n-30) degrees.- See Also:
-
Field Summary
Fields inherited from interface com.luciad.reference.ILcdGeoReference
CARTESIAN, GEODETIC -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdUTMGridfor zone 30 on the northern hemisphere.TLcdUTMGrid(int aZoneID) Creates a newTLcdUTMGridfor the given zone on the northern hemisphere.TLcdUTMGrid(int aZoneID, boolean aNorthernHemisphere) Creates a newTLcdUTMGridfor the given zone and on the given hemisphere. -
Method Summary
Modifier and TypeMethodDescriptionclone()Makes a deep clone of this grid reference.doubleGets the central meridian of the currentTLcdUTMGrid.getName()Returns a textual description of this reference.intReturns the zone ID that identifies the UTM zone.booleanReturns whether the UTM zone lies in the northern hemisphere, iftrue, or in the southern hemisphere, iffalse.voidloadProperties(String aPrefix, Properties aProperties) This method will retrieve the properties of thisTLcdUTMGrid, based on the givenPropertiesobject and the given prefix.voidsetFalseEasting(double aFalseEasting) Sets thefalseEastingof theTLcdGridReferencetoaFalseEasting.voidsetFalseNorthing(double aFalseNorthing) Sets thefalseNorthingof theTLcdGridReferencetoaFalseNorthing.voidsetGeodeticDatum(ILcdGeodeticDatum aGeodeticDatum) Sets the geodetic datum this reference is based on.voidSets a textual description of this reference.voidsetNorthernHemisphere(boolean aNorthernHemisphere) Sets the hemisphere of the UTM zone.voidsetProjection(ILcdProjection aProjection) Sets theILcdProjectionof theTLcdGridReferencetoaProjection.voidsetRotation(double aRotation) Sets the rotation of thisILcdGridReferencein radians, clockwise.voidsetScale(double aScale) Sets thescaleof theTLcdGridReferencetoaScale.voidsetUnitOfMeasure(double aUnitOfMeasure) Sets the UnitOfMeasure of theTLcdGridReferencetoaUnitOfMeasure.voidsetZoneID(int aZoneID) Sets the zoneID of thisTLcdUTMGrid.toString()Returns the name of this grid reference if it is defined, calls super.toString otherwise.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
equals, get2DEditableBounds, getCoordinateType, getCosRotation, getFalseEasting, getFalseNorthing, getProjection, getRotation, getScale, getSinRotation, getUnitOfMeasure, hashCode, isBoundsAvailable, makeModelPointMethods inherited from class com.luciad.reference.ALcdGeoReference
getGeodeticDatum, getModelReferenceMetadata, setModelReferenceMetadataMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.reference.ILcdGeoReference
getGeodeticDatum
-
Constructor Details
-
TLcdUTMGrid
public TLcdUTMGrid()Creates a newTLcdUTMGridfor zone 30 on the northern hemisphere. -
TLcdUTMGrid
public TLcdUTMGrid(int aZoneID) Creates a newTLcdUTMGridfor the given zone on the northern hemisphere.- Parameters:
aZoneID- the zone ID of the UTM grid to use.
-
TLcdUTMGrid
public TLcdUTMGrid(int aZoneID, boolean aNorthernHemisphere) Creates a newTLcdUTMGridfor the given zone and on the given hemisphere.- Parameters:
aZoneID- the zone ID of the UTM grid to use.aNorthernHemisphere- specifies that the zone lies in the northern hemisphere, iftrue, or in the southern hemisphere, iffalse.
-
-
Method Details
-
setProjection
Description copied from class:TLcdGridReferenceSets theILcdProjectionof theTLcdGridReferencetoaProjection.- Overrides:
setProjectionin classTLcdGridReference- Parameters:
aProjection- the new projection value for this reference.- See Also:
-
setGeodeticDatum
Description copied from class:ALcdGeoReferenceSets the geodetic datum this reference is based on.- Overrides:
setGeodeticDatumin classALcdGeoReference- Parameters:
aGeodeticDatum- the geodetic datum this reference is based on.- See Also:
-
getZoneID
public int getZoneID()Returns the zone ID that identifies the UTM zone. The ID lies between 1 and 60.- Returns:
- the zone ID of this
TLcdUTMGrid. - See Also:
-
setZoneID
public void setZoneID(int aZoneID) Sets the zoneID of thisTLcdUTMGrid.- Parameters:
aZoneID- the new zone ID of thisTLcdUTMGrid. The zone ID lies between 1 and 60.- See Also:
-
getCentralMeridian
public double getCentralMeridian()Gets the central meridian of the currentTLcdUTMGrid.- Returns:
- the central meridian of the current
TLcdUTMGrid.
-
isNorthernHemisphere
public boolean isNorthernHemisphere()Returns whether the UTM zone lies in the northern hemisphere, iftrue, or in the southern hemisphere, iffalse.- Returns:
- whether the UTM zone lies in the northern hemisphere,
if
true, or in the southern hemisphere, iffalse.
-
setNorthernHemisphere
public void setNorthernHemisphere(boolean aNorthernHemisphere) Sets the hemisphere of the UTM zone.- Parameters:
aNorthernHemisphere- specifies that the zone lies in the northern hemisphere, iftrue, or in the southern hemisphere, 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 thisTLcdUTMGrid, based on the givenPropertiesobject and the given prefix. The values of following required keys are retrieved:- <aPrefix>.TLcdUTMGrid.zoneID
- <aPrefix>.TLcdUTMGrid.northernHemisphere: true or false (default = true).
TLcdGeodeticDatumFactory. The keys of those entries should begin with '<aPrefix>.TLcdUTMGrid.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:
-
setName
Sets a textual description of this reference.- Overrides:
setNamein classALcdGeoReference- Parameters:
aName- a textual description of this reference.- See Also:
-
getName
Returns a textual description of this reference. If none was set using setName, a string containing the zone, the hemisphere and the geodetic datum is returned.- Overrides:
getNamein classALcdGeoReference- Returns:
- a textual description of this reference
- See Also:
-
toString
Description copied from class:TLcdGridReferenceReturns the name of this grid reference if it is defined, calls super.toString otherwise.- Overrides:
toStringin classTLcdGridReference- Returns:
- the name of this grid reference if it is defined.
-
clone
Description copied from class:TLcdGridReferenceMakes a deep clone of this grid reference.- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classTLcdGridReference- See Also:
-