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.
TLcdGeodeticDatum
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
ELLIPSOID_INVERSE_FLATTENING
The property key for the ellipsoid inverse flattening.
|
static String |
ELLIPSOID_NAME
The property key for the ellipsoid name.
|
static String |
ELLIPSOID_SEMI_MAJOR_AXIS
The property key for the ellipsoid semi major axis.
|
static String |
NAME
The property key for the geodetic datums name.
|
static String |
PIVOT_X
The property key for the geodetic datums x component of the
TLcdGeodeticDatum.setPivotX(double) . |
static String |
PIVOT_Y
The property key for the geodetic datums y component of the
TLcdGeodeticDatum.setPivotY(double) . |
static String |
PIVOT_Z
The property key for the geodetic datums z component of the
TLcdGeodeticDatum.setPivotZ(double) . |
static String |
PRIME_MERIDIAN
The property key for the geodetic datums prime meridian.
|
static String |
ROT_X
The property key for the geodetic datums rotation in x direction.
|
static String |
ROT_Y
The property key for the geodetic datums rotation in y direction.
|
static String |
ROT_Z
The property key for the geodetic datums rotation in z direction.
|
static String |
SCALE
The property key for the geodetic datums scale.
|
static String |
X
The property key for the geodetic datums translation in x direction.
|
static String |
Y
The property key for the geodetic datums translation in y direction.
|
static String |
Z
The property key for the geodetic datums translation in z direction.
|
Constructor and Description |
---|
TLcdGenericGeodeticDatumFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExportGeodeticDatum(ILcdGeodeticDatum aGeodeticDatum)
Returns whether the passed geodetic datum can be exported.
|
ILcdGeodeticDatum |
createGeodeticDatum(String aPrefix,
Properties aProperties)
Creates a
TLcdGeodeticDatum 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 a
TLcdGeodeticDatum 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 with createGeodeticDatum(java.lang.String, java.util.Properties) . |
public static final String ELLIPSOID_SEMI_MAJOR_AXIS
TLcdEllipsoid
,
Constant Field Valuespublic static final String ELLIPSOID_INVERSE_FLATTENING
TLcdEllipsoid
,
Constant Field Valuespublic static final String ELLIPSOID_NAME
TLcdEllipsoid
,
Constant Field Valuespublic static final String X
TLcdGeodeticDatum
,
Constant Field Valuespublic static final String Y
TLcdGeodeticDatum
,
Constant Field Valuespublic static final String Z
TLcdGeodeticDatum
,
Constant Field Valuespublic static final String ROT_X
TLcdGeodeticDatum
,
Constant Field Valuespublic static final String ROT_Y
TLcdGeodeticDatum
,
Constant Field Valuespublic static final String ROT_Z
TLcdGeodeticDatum
,
Constant Field Valuespublic static final String SCALE
TLcdGeodeticDatum
,
Constant Field Valuespublic static final String PIVOT_X
TLcdGeodeticDatum.setPivotX(double)
.TLcdGeodeticDatum
,
Constant Field Valuespublic static final String PIVOT_Y
TLcdGeodeticDatum.setPivotY(double)
.TLcdGeodeticDatum
,
Constant Field Valuespublic static final String PIVOT_Z
TLcdGeodeticDatum.setPivotZ(double)
.TLcdGeodeticDatum
,
Constant Field Valuespublic static final String NAME
TLcdGeodeticDatum
,
Constant Field Valuespublic static final String PRIME_MERIDIAN
TLcdGeodeticDatum
,
Constant Field Valuespublic ILcdGeodeticDatum createGeodeticDatum(String aPrefix, Properties aProperties) throws IllegalArgumentException
TLcdGeodeticDatum
which has the WGS84 geodetic datum as reference datum and
retrieves its parameters from the properties object.createGeodeticDatum
in interface ILcdGeodeticDatumFactory
aPrefix
- the prefix to pre-pend to the properties to be read.aProperties
- the Properties object to retrieve the geodetic datum from.TLcdGeodeticDatum
which has the WGS84 geodetic datum as reference datum and
its parameters retrieved from the properties object.IllegalArgumentException
- when a property which is expected as double could not be converted to
a double.public void writePropertiesSFCT(ILcdGeodeticDatum aGeodeticDatum, String aPrefix, Properties aPropertiesSFCT)
TLcdGeodeticDatum
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 with createGeodeticDatum(java.lang.String, java.util.Properties)
.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.IllegalArgumentException
- when an ILcdGeodeticDatum implementation other than
TLcdGeodeticDatum is passed, or a TLcdGeodeticDatum with a reference datum different from WGS84.public boolean canExportGeodeticDatum(ILcdGeodeticDatum aGeodeticDatum)
aGeodeticDatum
- the geodetic datum to check.TLcdGeodeticDatum
, with WGS84 as the reference datum.writePropertiesSFCT(com.luciad.geodesy.ILcdGeodeticDatum, java.lang.String, java.util.Properties)