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
A
TLcdGeodeticReference is an implementation of
ILcdGeodeticReference.- See Also:
-
Field Summary
Fields inherited from interface com.luciad.reference.ILcdGeoReference
CARTESIAN, GEODETIC -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.TLcdGeodeticReference(ILcdGeodeticDatum aGeodeticDatum) Constructor with anILcdGeodeticDatum. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns ILcdGeoReference.GEODETIC.voidloadProperties(String aPrefix, Properties aProperties) This method will, givenaPrefixandaProperties, 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.voidwritePropertiesSFCT(String aPrefix, Properties aPropertiesSFCT) Stores the properties that define this model reference into the specifiedPropertiesobject as a side effect.Methods inherited from class com.luciad.reference.ALcdGeoReference
clone, getGeodeticDatum, getModelReferenceMetadata, getName, hashCode, setGeodeticDatum, setModelReferenceMetadata, setNameMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.reference.ILcdGeodeticReference
cloneMethods 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:
getCoordinateTypein interfaceILcdGeoReference- Returns:
- ILcdGeoReference.GEODETIC.
-
makeModelPoint
Description copied from interface:ILcdModelReferenceCreates 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:
makeModelPointin interfaceILcdModelReference- Returns:
- a point that is compatible with this model reference.
-
loadProperties
This method will, givenaPrefixandaProperties, 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:
loadPropertiesin 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:ILcdModelReferenceStores the properties that define this model reference into the specifiedPropertiesobject as a side effect. Each particular implementation of this interface can define which properties it stores.- Specified by:
writePropertiesSFCTin 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:
equalsin classALcdGeoReference
-
toString
Returns the name of the geodetic datum.
-