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
ConstructorDescriptionCreates a newTLcdUTMGrid
for zone 30 on the northern hemisphere.TLcdUTMGrid
(int aZoneID) Creates a newTLcdUTMGrid
for the given zone on the northern hemisphere.TLcdUTMGrid
(int aZoneID, boolean aNorthernHemisphere) Creates a newTLcdUTMGrid
for the given zone and on the given hemisphere. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Makes a deep clone of this grid reference.double
Gets the central meridian of the currentTLcdUTMGrid
.getName()
Returns a textual description of this reference.int
Returns the zone ID that identifies the UTM zone.boolean
Returns whether the UTM zone lies in the northern hemisphere, iftrue
, or in the southern hemisphere, iffalse
.void
loadProperties
(String aPrefix, Properties aProperties) This method will retrieve the properties of thisTLcdUTMGrid
, 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
setGeodeticDatum
(ILcdGeodeticDatum aGeodeticDatum) Sets the geodetic datum this reference is based on.void
Sets a textual description of this reference.void
setNorthernHemisphere
(boolean aNorthernHemisphere) Sets the hemisphere of the UTM zone.void
setProjection
(ILcdProjection aProjection) Sets theILcdProjection
of theTLcdGridReference
toaProjection
.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
setZoneID
(int aZoneID) Sets the zoneID of thisTLcdUTMGrid
.toString()
Returns the name of this grid reference if it is defined, calls super.toString otherwise.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
equals, get2DEditableBounds, getCoordinateType, getCosRotation, getFalseEasting, getFalseNorthing, getProjection, getRotation, getScale, getSinRotation, getUnitOfMeasure, hashCode, isBoundsAvailable, makeModelPoint
Methods inherited from class com.luciad.reference.ALcdGeoReference
getGeodeticDatum, getModelReferenceMetadata, setModelReferenceMetadata
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
-
TLcdUTMGrid
public TLcdUTMGrid()Creates a newTLcdUTMGrid
for zone 30 on the northern hemisphere. -
TLcdUTMGrid
public TLcdUTMGrid(int aZoneID) Creates a newTLcdUTMGrid
for 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 newTLcdUTMGrid
for 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:TLcdGridReference
Sets theILcdProjection
of theTLcdGridReference
toaProjection
.- Overrides:
setProjection
in classTLcdGridReference
- Parameters:
aProjection
- the new projection value for this reference.- See Also:
-
setGeodeticDatum
Description copied from class:ALcdGeoReference
Sets the geodetic datum this reference is based on.- Overrides:
setGeodeticDatum
in 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: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 thisTLcdUTMGrid
, based on the givenProperties
object 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:
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:
-
setName
Sets a textual description of this reference.- Overrides:
setName
in 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:
getName
in classALcdGeoReference
- Returns:
- a textual description of this reference
- See Also:
-
toString
Description copied from class:TLcdGridReference
Returns the name of this grid reference if it is defined, calls super.toString otherwise.- Overrides:
toString
in classTLcdGridReference
- Returns:
- the name of this grid reference if it is defined.
-
clone
Description copied from class:TLcdGridReference
Makes a deep clone of this grid reference.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classTLcdGridReference
- See Also:
-