Class TLcyUTMGridReference
java.lang.Object
com.luciad.reference.ALcdGeoReference
com.luciad.reference.TLcdGridReference
com.luciad.lucy.addons.modelreference.TLcyGridReference
com.luciad.lucy.addons.modelreference.TLcyUTMGridReference
- All Implemented Interfaces:
ILcdExtendedModelReference
,ILcdModelReference
,ILcdGeoReference
,ILcdGridReference
,ILcdCloneable
,ILcdXYWorldReference
,ILcdXYZWorldReference
,Serializable
,Cloneable
Note: Do not programmatically rely on the existence of this
class or its methods, as they might change or disappear without notice.
If an UTM reference is needed, use TLcdUTMGrid instead.
- See Also:
-
Field Summary
Fields inherited from interface com.luciad.reference.ILcdGeoReference
CARTESIAN, GEODETIC
-
Constructor Summary
ConstructorDescriptionCreates a newTLcyUTMGridReference
.TLcyUTMGridReference
(int aZoneID, boolean aNorthernHemisphere) Creates a newTLcdUTMGrid
for the given zone and on the given hemisphere.TLcyUTMGridReference
(ILcdGeodeticDatum aGeodeticDatum, ILcdProjection aProjection, double aFalseEasting, double aFalseNorthing, double aScale, double aUnitOfMeasure, double aRotation, int aZoneID, boolean aNorthernHemisphere) TLcyUTMGridReference
(TLcyUTMGridReference aUTMGridReference) Copy constructor.TLcyUTMGridReference
(TLcdUTMGrid aUTMGridReference, String aDisplayName, boolean aEditable) Creates a newTLcyUTMGridReference
, ready to be used. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
void
loadProperties
(String aPrefix, Properties aProperties) This method will, givenaPrefix
, analyze theProperties
objectaProperties
to set the properties of thisTLcdGridReference
.void
setNorthernHemisphere
(boolean aNorthernHemisphere) void
setZoneID
(int aZoneID) 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.lucy.addons.modelreference.TLcyGridReference
clone, equals, getDisplayName, hashCode, isEditable, setDisplayName, setEditable, toString
Methods inherited from class com.luciad.reference.TLcdGridReference
get2DEditableBounds, getCoordinateType, getCosRotation, getFalseEasting, getFalseNorthing, getProjection, getRotation, getScale, getSinRotation, getUnitOfMeasure, isBoundsAvailable, makeModelPoint, setFalseEasting, setFalseNorthing, setProjection, setRotation, setScale, setUnitOfMeasure
Methods inherited from class com.luciad.reference.ALcdGeoReference
getGeodeticDatum, getModelReferenceMetadata, getName, 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
-
TLcyUTMGridReference
public TLcyUTMGridReference()Creates a newTLcyUTMGridReference
. You will have to set a geodetic datum and a projection before the grid reference can be used. -
TLcyUTMGridReference
public TLcyUTMGridReference(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
.
-
TLcyUTMGridReference
Copy constructor.- Parameters:
aUTMGridReference
- The grid reference to copy.- See Also:
-
TLcyUTMGridReference
public TLcyUTMGridReference(ILcdGeodeticDatum aGeodeticDatum, ILcdProjection aProjection, double aFalseEasting, double aFalseNorthing, double aScale, double aUnitOfMeasure, double aRotation, int aZoneID, boolean aNorthernHemisphere) -
TLcyUTMGridReference
Creates a newTLcyUTMGridReference
, ready to be used. All necessary properties are taken from the givenTLcdUTMGrid
.- Parameters:
aUTMGridReference
- TheTLcdUTMGrid
to take all properties from.aDisplayName
- The display name for this grid reference.aEditable
- True if this grid reference can be modified, false otherwise.- See Also:
-
-
Method Details
-
setZoneID
public void setZoneID(int aZoneID) -
setNorthernHemisphere
public void setNorthernHemisphere(boolean aNorthernHemisphere) -
isNorthernHemisphere
public boolean isNorthernHemisphere() -
getZoneID
public int getZoneID() -
loadProperties
Description copied from class:TLcdGridReference
This method will, givenaPrefix
, analyze theProperties
objectaProperties
to set the properties of thisTLcdGridReference
. The values of following keys are retrieved:- <aPrefix>.TLcdGridReference.scale
- <aPrefix>.TLcdGridReference.falseNorthing
- <aPrefix>.TLcdGridReference.falseEasting
- <aPrefix>.TLcdGridReference.unitOfMeasure
- <aPrefix>.TLcdGridReference.rotation
aProperties
should contain entries which will be analyzed by theTLcdProjectionFactory
. The keys of those entries should begin with '<aPrefix>TLcdGridReference.projection.'.To be able to set the property geodeticDatum the aProperties should contain entries which will be analyzed by the
TLcdGeodeticDatumFactory
. The keys of those entries should begin with '<aPrefix>.TLcdGridReference.geodeticDatum.'. The properties object is also passed to theTLcdModelReferenceMetadata.loadProperties(java.lang.String, java.util.Properties)
with the prefix"<aPrefix>.TLcdGridReference."
- Specified by:
loadProperties
in interfaceILcdModelReference
- Overrides:
loadProperties
in classTLcyGridReference
- 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 classTLcyGridReference
- 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:
-