public class TLcdTopocentricReference extends ALcdGeoReference implements ILcdTopocentricReference, ILcdXYZWorldReference
A TLcdTopocentricReference
is an implementation of an ILcdTopocentricReference
.
A topocentric coordinate system is a right-handed cartesian coordinate system with the following properties:
This reference is also referred as an ENU (East-North-Up) projection.
CARTESIAN, GEODETIC
Constructor and Description |
---|
TLcdTopocentricReference()
Default constructor with
null ILcdGeodeticDatum and
null ILcdPoint . |
TLcdTopocentricReference(ILcdGeodeticDatum aGeodeticDatum,
ILcdPoint aOrigin)
Constructor with an
ILcdGeodeticDatum and
an ILcd3DEditablePoint as origin. |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Makes
Object.clone() public. |
boolean |
equals(Object aObject) |
int |
getCoordinateType()
Returns the type of coordinates used with this
ILcdGeoReference :
CARTESIAN or GEODETIC . |
ILcdPoint |
getOrigin()
Returns the 3D origin of this
ILcdTopocentricReference . |
int |
hashCode() |
void |
loadProperties(String aPrefix,
Properties aProperties)
This method will, given
aPrefix , analyze the
Properties object aProperties
to set the properties of this TLcdTopocentricReference . |
ILcdPoint |
makeModelPoint()
Creates a model point that is compatible with this model reference.
|
void |
writePropertiesSFCT(String aPrefix,
Properties aPropertiesSFCT)
Stores the properties that define this model reference into the specified
Properties object as a side
effect. |
getGeodeticDatum, getModelReferenceMetadata, getName, setGeodeticDatum, setModelReferenceMetadata, setName
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getGeodeticDatum
public TLcdTopocentricReference()
null
ILcdGeodeticDatum
and
null
ILcdPoint
.public TLcdTopocentricReference(ILcdGeodeticDatum aGeodeticDatum, ILcdPoint aOrigin)
ILcdGeodeticDatum
and
an ILcd3DEditablePoint
as origin.aGeodeticDatum
- the geodetic datum of this reference.aOrigin
- a 3D point (lonLatHeight) w.r.t. the geodetic datum that is the origin
of the topocentric reference.public ILcdPoint getOrigin()
ILcdTopocentricReference
ILcdTopocentricReference
.getOrigin
in interface ILcdTopocentricReference
ILcdTopocentricReference
.ILcdTopocentricReference.getOrigin()
public int getCoordinateType()
ILcdGeoReference
ILcdGeoReference
:
CARTESIAN
or GEODETIC
.getCoordinateType
in interface ILcdGeoReference
ILcdGeoReference
:
CARTESIAN
or GEODETIC
.public ILcdPoint makeModelPoint()
ILcdModelReference
makeModelPoint
in interface ILcdModelReference
public void loadProperties(String aPrefix, Properties aProperties) throws IllegalArgumentException
aPrefix
, analyze the
Properties
object aProperties
to set the properties of this TLcdTopocentricReference
.
The values of following keys are retrieved for setting the property origin:
aProperties
should contain entries which will be analyzed by the
TLcdGeodeticDatumFactory
.
The keys of those entries should begin with
'<aPrefix>TLcdGridReference.geodeticDatum.'. The decoding of the model meta-data is
delegated to TLcdModelReferenceMetadata
class.loadProperties
in interface ILcdModelReference
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.TLcdGeodeticDatumFactory
,
TLcdModelReferenceMetadata.loadProperties(String, java.util.Properties)
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
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.loadProperties(java.lang.String, java.util.Properties)
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 ILcdCloneable
clone
in class ALcdGeoReference
Object.clone()
public boolean equals(Object aObject)
equals
in class ALcdGeoReference