Class ThreeParameterDatum
- java.lang.Object
-
- org.openstreetmap.josm.data.projection.datum.AbstractDatum
-
- org.openstreetmap.josm.data.projection.datum.ThreeParameterDatum
-
- All Implemented Interfaces:
Datum
public class ThreeParameterDatum extends AbstractDatum
Datum provides 3 dimensional offset and ellipsoid conversion.- Since:
- 4285
-
-
Constructor Summary
Constructors Constructor Description ThreeParameterDatum(java.lang.String name, java.lang.String proj4Id, Ellipsoid ellps, double dx, double dy, double dz)
Constructs a newThreeParameterDatum
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LatLon
fromWGS84(LatLon ll)
Convert lat/lon fromEllipsoid.WGS84
to this datum.LatLon
toWGS84(LatLon ll)
Convert lat/lon from this datum toEllipsoid.WGS84
datum.-
Methods inherited from class org.openstreetmap.josm.data.projection.datum.AbstractDatum
getEllipsoid, getName, getProj4Id
-
-
-
-
Constructor Detail
-
ThreeParameterDatum
public ThreeParameterDatum(java.lang.String name, java.lang.String proj4Id, Ellipsoid ellps, double dx, double dy, double dz)
Constructs a newThreeParameterDatum
.- 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 meters
-
-
Method Detail
-
toWGS84
public LatLon toWGS84(LatLon ll)
Description copied from interface:Datum
Convert lat/lon from this datum toEllipsoid.WGS84
datum.- Parameters:
ll
- original lat/lon in this datum- Returns:
- lat/lon converted to WGS84
-
fromWGS84
public LatLon fromWGS84(LatLon ll)
Description copied from interface:Datum
Convert lat/lon fromEllipsoid.WGS84
to this datum.- Parameters:
ll
- original lat/lon in WGS84- Returns:
- converted lat/lon in this datum
-
-