Class SevenParameterDatum
java.lang.Object
org.openstreetmap.josm.data.projection.datum.AbstractDatum
org.openstreetmap.josm.data.projection.datum.SevenParameterDatum
- All Implemented Interfaces:
Datum
Datum provides general conversion from one ellipsoid to another.
Seven parameters can be specified:
- 3D offset
- general rotation
- scale
This method is described by EPSG as EPSG:9606.
Also known as Bursa-Wolf.
- Since:
- 4285
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleFields inherited from class org.openstreetmap.josm.data.projection.datum.AbstractDatum
ellps, name, proj4Id -
Constructor Summary
ConstructorsConstructorDescriptionSevenParameterDatum(String name, String proj4Id, Ellipsoid ellps, double dx, double dy, double dz, double rx, double ry, double rz, double s) Constructs a newSevenParameterDatum -
Method Summary
Modifier and TypeMethodDescriptionConvert lat/lon fromEllipsoid.WGS84to this datum.Convert lat/lon from this datum toEllipsoid.WGS84datum.Methods inherited from class org.openstreetmap.josm.data.projection.datum.AbstractDatum
getEllipsoid, getName, getProj4Id
-
Field Details
-
dx
-
dy
-
dz
-
rx
-
ry
-
rz
-
s
-
-
Constructor Details
-
SevenParameterDatum
public SevenParameterDatum(String name, String proj4Id, Ellipsoid ellps, double dx, double dy, double dz, double rx, double ry, double rz, double s) Constructs a newSevenParameterDatum- Parameters:
name- name of the datumproj4Id- Proj.4 identifier for this datum (or null)ellps- the ellipsoid useddx- x offset in metersdy- y offset in metersdz- z offset in metersrx- rotational parameter in seconds of arcry- rotational parameter in seconds of arcrz- rotational parameter in seconds of arcs- scale change in parts per million
-
-
Method Details
-
toWGS84
Description copied from interface:DatumConvert lat/lon from this datum toEllipsoid.WGS84datum.- Parameters:
ll- original lat/lon in this datum- Returns:
- lat/lon converted to WGS84
-
fromWGS84
Description copied from interface:DatumConvert lat/lon fromEllipsoid.WGS84to this datum.- Parameters:
ll- original lat/lon in WGS84- Returns:
- converted lat/lon in this datum
-