public class TLcyUTMGridReference extends TLcyGridReference
CARTESIAN, GEODETIC
Constructor and Description |
---|
TLcyUTMGridReference()
Creates a new
TLcyUTMGridReference . |
TLcyUTMGridReference(ILcdGeodeticDatum aGeodeticDatum,
ILcdProjection aProjection,
double aFalseEasting,
double aFalseNorthing,
double aScale,
double aUnitOfMeasure,
double aRotation,
int aZoneID,
boolean aNorthernHemisphere) |
TLcyUTMGridReference(int aZoneID,
boolean aNorthernHemisphere)
Creates a new
TLcdUTMGrid for the given zone and on the given
hemisphere. |
TLcyUTMGridReference(TLcdUTMGrid aUTMGridReference,
String aDisplayName,
boolean aEditable)
Creates a new
TLcyUTMGridReference , ready to be used. |
TLcyUTMGridReference(TLcyUTMGridReference aUTMGridReference)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getZoneID() |
boolean |
isNorthernHemisphere() |
void |
loadProperties(String aPrefix,
Properties aProperties)
This method will, given
aPrefix , analyze the
Properties object aProperties
to set the properties of this TLcdGridReference . |
void |
setNorthernHemisphere(boolean aNorthernHemisphere) |
void |
setZoneID(int aZoneID) |
void |
writePropertiesSFCT(String aPrefix,
Properties aPropertiesSFCT)
Stores the properties that define this model reference into the specified
Properties object as a side
effect. |
clone, equals, getDisplayName, hashCode, isEditable, setDisplayName, setEditable, toString
get2DEditableBounds, getCoordinateType, getCosRotation, getFalseEasting, getFalseNorthing, getProjection, getRotation, getScale, getSinRotation, getUnitOfMeasure, isBoundsAvailable, makeModelPoint, setFalseEasting, setFalseNorthing, setProjection, setRotation, setScale, setUnitOfMeasure
getGeodeticDatum, getModelReferenceMetadata, getName, setGeodeticDatum, setModelReferenceMetadata, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getGeodeticDatum
public TLcyUTMGridReference()
TLcyUTMGridReference
. You will have to set a
geodetic datum and a projection before the grid reference can be used.public TLcyUTMGridReference(int aZoneID, boolean aNorthernHemisphere)
TLcdUTMGrid
for the given zone and on the given
hemisphere.aZoneID
- the zone ID of the UTM grid to use.aNorthernHemisphere
- specifies that the zone lies in the northern
hemisphere, if true
, or in the
southern hemisphere, if false
.public TLcyUTMGridReference(TLcyUTMGridReference aUTMGridReference)
aUTMGridReference
- The grid reference to copy.TLcdGridReference
public TLcyUTMGridReference(ILcdGeodeticDatum aGeodeticDatum, ILcdProjection aProjection, double aFalseEasting, double aFalseNorthing, double aScale, double aUnitOfMeasure, double aRotation, int aZoneID, boolean aNorthernHemisphere)
public TLcyUTMGridReference(TLcdUTMGrid aUTMGridReference, String aDisplayName, boolean aEditable)
TLcyUTMGridReference
, ready to be used. All necessary properties are
taken from the given TLcdUTMGrid
.aUTMGridReference
- The TLcdUTMGrid
to take all properties from.aDisplayName
- The display name for this grid reference.aEditable
- True if this grid reference can be modified, false otherwise.TLcdGridReference
public void setZoneID(int aZoneID)
public void setNorthernHemisphere(boolean aNorthernHemisphere)
public boolean isNorthernHemisphere()
public int getZoneID()
public void loadProperties(String aPrefix, Properties aProperties) throws IllegalArgumentException
TLcdGridReference
aPrefix
, analyze the
Properties
object aProperties
to set the properties of this TLcdGridReference
.
The values of following keys are retrieved:
aProperties
should contain
entries which will be analyzed by the TLcdProjectionFactory
.
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 the TLcdModelReferenceMetadata.loadProperties(java.lang.String, java.util.Properties)
with the prefix "<aPrefix>.TLcdGridReference."
loadProperties
in interface ILcdModelReference
loadProperties
in class TLcyGridReference
aPrefix
- a common prefix for all property names that are read.aProperties
- the properties to be parsed.IllegalArgumentException
- if the model reference cannot be constructed from the properties.TLcdProjectionFactory
,
TLcdGeodeticDatumFactory
,
TLcdModelReferenceMetadata
public void writePropertiesSFCT(String aPrefix, Properties aPropertiesSFCT) throws IllegalArgumentException
ILcdModelReference
Properties
object as a side
effect.
Each particular implementation of this interface can define which properties it stores.writePropertiesSFCT
in interface ILcdModelReference
writePropertiesSFCT
in class TLcyGridReference
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.IllegalArgumentException
- if the model reference cannot be serialized into properties.TLcdGridReference.loadProperties(java.lang.String, java.util.Properties)