Class Datum
- java.lang.Object
-
- org.geolatte.geom.crs.CrsIdentifiable
-
- org.geolatte.geom.crs.Datum
-
public class Datum extends CrsIdentifiable
A horizontal datum.A horizontal datum is the procedure used to measure positions on the surface of the earth (see [CTS-1.00], p. 65).
A
Datumhas an optional toWGS84 property. If present, this property is a list of up to 7 Bursa Wolf transformation parameters. The meaning of these parameters is described as follows by [CTS-1.00]. "These parameters can be used to approximate a transformation from the horizontal datum to the WGS84 datum. However, it must be remembered that this transformation is only an approximation. For a given horizontal datum, different Bursa Wolf transformations can be used to minimize the errors over different regions. If the DATUM clause contains a TOWGS84 clause, then this should be its "preferred" transformation, which will often be the transformation which gives a broad approximation over the whole area of interest (e.g. the area of interest in the containing geographic coordinate system). Sometimes, only the first three or six parameters are defined. In this case the remaining parameters must be zero. If only three parameters are defined, then they can still be plugged into the Bursa Wolf formulas, or you can take a short cut. The Bursa Wolf transformation works on geocentric coordinates, so you cannot apply it onto geographic coordinates directly. If there are only three parameters then you can use the Molodenski or abridged Molodenski formulas."- Author:
- Karel Maesen, Geovise BVBA creation-date: 8/2/11
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)EllipsoidgetEllipsoid()Returns theEllipsoidfor thisDatumdouble[]getToWGS84()Returns the parameters for thePositionVectorTransformationto the WGS84 datum.inthashCode()-
Methods inherited from class org.geolatte.geom.crs.CrsIdentifiable
getCrsId, getName
-
-
-
-
Constructor Detail
-
Datum
public Datum(CrsId crsId, Ellipsoid ellipsoid, String name, double[] toWGS84)
Constructs aDatum.- Parameters:
crsId- an identifier for thisDatumellipsoid- theEllipsoidfor the newDatumname- the common name for thisDatumtoWGS84- the parameters for the Bursa-Wolf transformation into WGS84.
-
-
Method Detail
-
getEllipsoid
public Ellipsoid getEllipsoid()
Returns theEllipsoidfor thisDatum- Returns:
-
getToWGS84
public double[] getToWGS84()
Returns the parameters for thePositionVectorTransformationto the WGS84 datum.If the parameters are not available for this
Datum, than an array of size zero is returned.- Returns:
- the parameters, or an empty array if the parameters are not present.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCrsIdentifiable
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCrsIdentifiable
-
-