Package com.luciad.geodesy
Class TLcdGenericGeodeticDatumFactory
java.lang.Object
com.luciad.geodesy.TLcdGenericGeodeticDatumFactory
- All Implemented Interfaces:
ILcdGeodeticDatumFactory
,Serializable
public class TLcdGenericGeodeticDatumFactory
extends Object
implements ILcdGeodeticDatumFactory, Serializable
ILcdGeodeticDatumFactory
implementation that creates TLcdGeodeticDatum
objects based on the 7 (or 10) parameters that define the geodetic datum.
The properties read are:
Property name | Default value |
x | 0 |
y | 0 |
z | 0 |
rotx | 0 |
roty | 0 |
rotz | 0 |
scale | 1.0 |
px | 0.0 |
py | 0.0 |
pz | 0.0 |
name | Geodetic datum |
The geodetic datum is based on an ellipsoid, which is defined by two additional properties:
Property name | Default value |
a | -- |
1overf | -- |
The TLcdGeodeticDatum
generated has WGS84 as a reference datum.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The property key for the ellipsoid inverse flattening.static final String
The property key for the ellipsoid name.static final String
The property key for the ellipsoid semi major axis.static final String
The property key for the geodetic datums name.static final String
The property key for the geodetic datums x component of theTLcdGeodeticDatum.setPivotX(double)
.static final String
The property key for the geodetic datums y component of theTLcdGeodeticDatum.setPivotY(double)
.static final String
The property key for the geodetic datums z component of theTLcdGeodeticDatum.setPivotZ(double)
.static final String
The property key for the geodetic datums prime meridian.static final String
The property key for the geodetic datums rotation in x direction.static final String
The property key for the geodetic datums rotation in y direction.static final String
The property key for the geodetic datums rotation in z direction.static final String
The property key for the geodetic datums scale.static final String
The property key for the geodetic datums translation in x direction.static final String
The property key for the geodetic datums translation in y direction.static final String
The property key for the geodetic datums translation in z direction. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canExportGeodeticDatum
(ILcdGeodeticDatum aGeodeticDatum) Returns whether the passed geodetic datum can be exported.createGeodeticDatum
(String aPrefix, Properties aProperties) Creates aTLcdGeodeticDatum
which has the WGS84 geodetic datum as reference datum and retrieves its parameters from the properties object.void
writePropertiesSFCT
(ILcdGeodeticDatum aGeodeticDatum, String aPrefix, Properties aPropertiesSFCT) If the geodetic datum passed is aTLcdGeodeticDatum
instance with WGS84 as its reference datum, this method adds the parameters of the geodetic datum to the Properties object, so that the geodetic datum can be recreated withcreateGeodeticDatum(java.lang.String, java.util.Properties)
.
-
Field Details
-
ELLIPSOID_SEMI_MAJOR_AXIS
The property key for the ellipsoid semi major axis.- See Also:
-
ELLIPSOID_INVERSE_FLATTENING
The property key for the ellipsoid inverse flattening.- See Also:
-
ELLIPSOID_NAME
The property key for the ellipsoid name.- See Also:
-
X
The property key for the geodetic datums translation in x direction.- See Also:
-
Y
The property key for the geodetic datums translation in y direction.- See Also:
-
Z
The property key for the geodetic datums translation in z direction.- See Also:
-
ROT_X
The property key for the geodetic datums rotation in x direction.- See Also:
-
ROT_Y
The property key for the geodetic datums rotation in y direction.- See Also:
-
ROT_Z
The property key for the geodetic datums rotation in z direction.- See Also:
-
SCALE
The property key for the geodetic datums scale.- See Also:
-
PIVOT_X
The property key for the geodetic datums x component of theTLcdGeodeticDatum.setPivotX(double)
.- Since:
- 2023.1
- See Also:
-
PIVOT_Y
The property key for the geodetic datums y component of theTLcdGeodeticDatum.setPivotY(double)
.- Since:
- 2023.1
- See Also:
-
PIVOT_Z
The property key for the geodetic datums z component of theTLcdGeodeticDatum.setPivotZ(double)
.- Since:
- 2023.1
- See Also:
-
NAME
The property key for the geodetic datums name.- See Also:
-
PRIME_MERIDIAN
The property key for the geodetic datums prime meridian.- See Also:
-
-
Constructor Details
-
TLcdGenericGeodeticDatumFactory
public TLcdGenericGeodeticDatumFactory()
-
-
Method Details
-
createGeodeticDatum
public ILcdGeodeticDatum createGeodeticDatum(String aPrefix, Properties aProperties) throws IllegalArgumentException Creates aTLcdGeodeticDatum
which has the WGS84 geodetic datum as reference datum and retrieves its parameters from the properties object.- Specified by:
createGeodeticDatum
in interfaceILcdGeodeticDatumFactory
- Parameters:
aPrefix
- the prefix to pre-pend to the properties to be read.aProperties
- the Properties object to retrieve the geodetic datum from.- Returns:
- a
TLcdGeodeticDatum
which has the WGS84 geodetic datum as reference datum and its parameters retrieved from the properties object. - Throws:
IllegalArgumentException
- when a property which is expected as double could not be converted to a double.
-
writePropertiesSFCT
public void writePropertiesSFCT(ILcdGeodeticDatum aGeodeticDatum, String aPrefix, Properties aPropertiesSFCT) If the geodetic datum passed is aTLcdGeodeticDatum
instance with WGS84 as its reference datum, this method adds the parameters of the geodetic datum to the Properties object, so that the geodetic datum can be recreated withcreateGeodeticDatum(java.lang.String, java.util.Properties)
.- Parameters:
aGeodeticDatum
- the TLcdGeodeticDatum to add to the properties object.aPrefix
- the prefix to pre-pend to the properties names.aPropertiesSFCT
- the Properties object to modify.- Throws:
IllegalArgumentException
- when an ILcdGeodeticDatum implementation other than TLcdGeodeticDatum is passed, or a TLcdGeodeticDatum with a reference datum different from WGS84.
-
canExportGeodeticDatum
Returns whether the passed geodetic datum can be exported.- Parameters:
aGeodeticDatum
- the geodetic datum to check.- Returns:
- true if the geodetic datum passed is a
TLcdGeodeticDatum
, with WGS84 as the reference datum. - See Also:
-