Package com.luciad.reference
Class TLcdGeodeticReference
java.lang.Object
com.luciad.reference.ALcdGeoReference
com.luciad.reference.TLcdGeodeticReference
- All Implemented Interfaces:
ILcdExtendedModelReference
,ILcdModelReference
,ILcdGeodeticReference
,ILcdGeoReference
,ILcdCloneable
,Serializable
,Cloneable
- Direct Known Subclasses:
TLcyGeodeticReference
A
TLcdGeodeticReference
is an implementation of
ILcdGeodeticReference
.- See Also:
-
Field Summary
Fields inherited from interface com.luciad.reference.ILcdGeoReference
CARTESIAN, GEODETIC
-
Constructor Summary
ConstructorDescriptionDefault constructor.TLcdGeodeticReference
(ILcdGeodeticDatum aGeodeticDatum) Constructor with anILcdGeodeticDatum
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns ILcdGeoReference.GEODETIC.void
loadProperties
(String aPrefix, Properties aProperties) This method will, givenaPrefix
andaProperties
, set its property geodeticDatum to an instance ofILcdGeodeticDatum
.Creates a model point that is compatible with this model reference.toString()
Returns the name of the geodetic datum.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.ALcdGeoReference
clone, getGeodeticDatum, getModelReferenceMetadata, getName, hashCode, setGeodeticDatum, setModelReferenceMetadata, setName
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.reference.ILcdGeodeticReference
clone
Methods inherited from interface com.luciad.reference.ILcdGeoReference
getGeodeticDatum
-
Constructor Details
-
TLcdGeodeticReference
public TLcdGeodeticReference()Default constructor. This will create a geodetic reference based on a WGS 84 geodetic datum.Note:This constructor exists mainly for beans compliancy reasons. Use
TLcdGeodeticReference(com.luciad.geodesy.ILcdGeodeticDatum)
.- See Also:
-
TLcdGeodeticReference
Constructor with anILcdGeodeticDatum
.- Parameters:
aGeodeticDatum
- the geodetic datum on which this reference is based.
Note:if null is passed here, make sure to set the geodetic datum is set before using this reference.
-
-
Method Details
-
getCoordinateType
public int getCoordinateType()Returns ILcdGeoReference.GEODETIC.- Specified by:
getCoordinateType
in interfaceILcdGeoReference
- Returns:
- ILcdGeoReference.GEODETIC.
-
makeModelPoint
Description copied from interface:ILcdModelReference
Creates a model point that is compatible with this model reference. It is unspecified how (which coordinates) the point is initialized. Users should initialize the point correctly before inserting it into a model.- Specified by:
makeModelPoint
in interfaceILcdModelReference
- Returns:
- a point that is compatible with this model reference.
-
loadProperties
This method will, givenaPrefix
andaProperties
, set its property geodeticDatum to an instance ofILcdGeodeticDatum
. To be able to set the property geodeticDatum the aProperties should contain entries which will be analyzed by theTLcdGeodeticDatumFactory
. The keys of those entries should begin with '<aPrefix>TLcdGeodeticReference.geodeticDatum.'.- Specified by:
loadProperties
in interfaceILcdModelReference
- 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.
-
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
- 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:
-
equals
- Overrides:
equals
in classALcdGeoReference
-
toString
Returns the name of the geodetic datum.
-