Package com.luciad.geodesy
Class TLcdGeodeticDatumFactory
java.lang.Object
com.luciad.geodesy.TLcdGeodeticDatumFactory
The
TLcdGeodeticDatumFactory
is capable of creating an instance
of ILcdGeodeticDatum
by decoding a given Properties
object.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ILcdGeodeticDatum
createGeodeticDatum
(String aPrefix, Properties aProperties) This method will, givenaPrefix
andaProperties
, return anILcdGeodeticDatum
.static void
writePropertiesSFCT
(ILcdGeodeticDatum aGeodeticDatum, String aPrefix, Properties aPropertiesSFCT) Serializes aILcdGeodeticDatum
as properties into aProperties
object.
-
Constructor Details
-
TLcdGeodeticDatumFactory
public TLcdGeodeticDatumFactory()
-
-
Method Details
-
createGeodeticDatum
public static ILcdGeodeticDatum createGeodeticDatum(String aPrefix, Properties aProperties) throws IllegalArgumentException This method will, givenaPrefix
andaProperties
, return anILcdGeodeticDatum
. It will look for the following key : <aPrefix>ILcdGeodeticDatumFactory.class : the name of aILcdGeodeticDatumFactory
instance that is capable of creating aILcdGeodeticDatum
. TheaProperties
object should contain entries which will be analyzed by the specifiedILcdGeodeticDatumFactory
instance.- Parameters:
aPrefix
- prefix for propertFy names.aProperties
- Properties object holding the property values.- Returns:
- the
ILcdGeodeticDatum
corresponding to the given properties. - Throws:
IllegalArgumentException
- if theILcdGeodeticDatum
cannot be created.- See Also:
-
writePropertiesSFCT
public static void writePropertiesSFCT(ILcdGeodeticDatum aGeodeticDatum, String aPrefix, Properties aPropertiesSFCT) Serializes aILcdGeodeticDatum
as properties into aProperties
object. The property names get the common prefixaPrefix
. The method will look if theILcdGeodeticDatum
is specified by one of theILcdGeodeticDatumFactory
implementations:- TLcdNIMA8350GeodeticDatumFactory
- TLcdJPLGeodeticDatumFactory
- Parameters:
aGeodeticDatum
- geodetic datum to serialize.aPrefix
- prefix to use for property names.aPropertiesSFCT
- container holding the property values as side effect.- Throws:
IllegalArgumentException
- if the serialization as properties fails.- See Also:
-