public class TLcyGeodeticReference extends TLcdGeodeticReference
CARTESIAN, GEODETIC
Constructor and Description |
---|
TLcyGeodeticReference()
Creates a new
TLcyGeodeticReference with a WGS84 geodetic datum. |
TLcyGeodeticReference(ILcdGeodeticDatum aGeodeticDatum)
Creates a new
TLcyGeodeticReference with the given geodetic datum. |
TLcyGeodeticReference(ILcdGeodeticDatum aGeodeticDatum,
String aDisplayName,
boolean aEditable)
Creates a new
TLcyGeodeticReference with the given geodetic
datum, display name and editable value. |
TLcyGeodeticReference(TLcyGeodeticReference aGeodeticReference)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Makes
Object.clone() public. |
boolean |
equals(Object aObj) |
int |
getCoordinateType()
Returns ILcdGeoReference.GEODETIC.
|
String |
getDisplayName()
Deprecated.
Use #getName() instead.
|
ILcdGeodeticDatum |
getGeodeticDatum()
Returns the
ILcdGeodeticDatum of this ILcdGeoReference . |
String |
getName() |
int |
hashCode() |
boolean |
isEditable()
Returns true if this
TLcyGeodeticReference can be edited, false otherwise. |
void |
loadProperties(String aPrefix,
Properties aProperties)
This method will, given
aPrefix and aProperties ,
set its property geodeticDatum to an instance of
ILcdGeodeticDatum . |
ILcdPoint |
makeModelPoint()
Creates a model point that is compatible with this model reference.
|
void |
setDisplayName(String aDisplayName)
Deprecated.
Use #setName(String) instead.
|
void |
setEditable(boolean aEditable)
Sets true if this
TLcyGeodeticReference can be modified, false otherwise. |
void |
setGeodeticDatum(ILcdGeodeticDatum aGeodeticDatum)
Sets the geodetic datum this reference is based on.
|
void |
setName(String aName) |
String |
toString()
Returns the name of the geodetic datum.
|
void |
writePropertiesSFCT(String aPrefix,
Properties aProperties)
Stores the properties that define this model reference into the specified
Properties object as a side
effect. |
getModelReferenceMetadata, setModelReferenceMetadata
public TLcyGeodeticReference()
TLcyGeodeticReference
with a WGS84 geodetic datum.TLcdGeodeticReference
public TLcyGeodeticReference(ILcdGeodeticDatum aGeodeticDatum)
TLcyGeodeticReference
with the given geodetic datum.aGeodeticDatum
- The geodetic datum to use for this geodetic reference.TLcdGeodeticReference
public TLcyGeodeticReference(ILcdGeodeticDatum aGeodeticDatum, String aDisplayName, boolean aEditable)
TLcyGeodeticReference
with the given geodetic
datum, display name and editable value.aGeodeticDatum
- The geodetic datum to use for this TLcyGeodeticReference
.aDisplayName
- The display name to present this TLcyGeodeticReference
to a user.aEditable
- True if this geodetic reference can be modified, false otherwise.TLcdGeodeticReference
public TLcyGeodeticReference(TLcyGeodeticReference aGeodeticReference)
aGeodeticReference
- The reference to copy.TLcdGeodeticReference
@Deprecated public String getDisplayName()
TLcyGeodeticReference
using the method getName()
.TLcyGeodeticReference
.setDisplayName(java.lang.String)
@Deprecated public void setDisplayName(String aDisplayName)
TLcyGeodeticReference
using the method setName(String)
.aDisplayName
- the display name of this TLcyGeodeticReference
.getDisplayName()
public boolean isEditable()
TLcyGeodeticReference
can be edited, false otherwise.TLcyGeodeticReference
can be edited, false otherwise.setEditable(boolean)
public void setEditable(boolean aEditable)
TLcyGeodeticReference
can be modified, false otherwise.aEditable
- True if this TLcyGeodeticReference
can be modified, false otherwise.public ILcdGeodeticDatum getGeodeticDatum()
ILcdGeoReference
ILcdGeodeticDatum
of this ILcdGeoReference
.getGeodeticDatum
in interface ILcdGeoReference
getGeodeticDatum
in class ALcdGeoReference
ILcdGeodeticDatum
of this ILcdGeoReference
.ILcdGeoReference.getGeodeticDatum()
,
ALcdGeoReference.setGeodeticDatum(com.luciad.geodesy.ILcdGeodeticDatum)
public void setGeodeticDatum(ILcdGeodeticDatum aGeodeticDatum)
ALcdGeoReference
setGeodeticDatum
in class ALcdGeoReference
aGeodeticDatum
- the geodetic datum this reference is based on.ALcdGeoReference.getGeodeticDatum()
public String getName()
getName
in class ALcdGeoReference
public void setName(String aName)
setName
in class ALcdGeoReference
public int getCoordinateType()
TLcdGeodeticReference
getCoordinateType
in interface ILcdGeoReference
getCoordinateType
in class TLcdGeodeticReference
public ILcdPoint makeModelPoint()
ILcdModelReference
makeModelPoint
in interface ILcdModelReference
makeModelPoint
in class TLcdGeodeticReference
public void loadProperties(String aPrefix, Properties aProperties) throws IllegalArgumentException
TLcdGeodeticReference
aPrefix
and aProperties
,
set its property geodeticDatum to an instance of
ILcdGeodeticDatum
.
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>TLcdGeodeticReference.geodeticDatum.'.loadProperties
in interface ILcdModelReference
loadProperties
in class TLcdGeodeticReference
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.public void writePropertiesSFCT(String aPrefix, Properties aProperties) 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 TLcdGeodeticReference
aPrefix
- a common prefix for all property names written.aProperties
- 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.TLcdGeodeticReference.loadProperties(java.lang.String, java.util.Properties)
public boolean equals(Object aObj)
equals
in class TLcdGeodeticReference
public int hashCode()
hashCode
in class ALcdGeoReference
public Object clone()
ILcdCloneable
Makes Object.clone()
public.
java.lang.Object
, it can be implemented like this:
public Object clone() {
try {
return super.clone();
} catch ( CloneNotSupportedException e ) {
// Cannot happen: extends from Object and implements Cloneable (see also Object.clone)
throw new RuntimeException( e );
}
}
clone
in interface ILcdGeodeticReference
clone
in interface ILcdCloneable
clone
in class ALcdGeoReference
Object.clone()
public String toString()
TLcdGeodeticReference
toString
in class TLcdGeodeticReference
ALcdGeoReference.getName()