org.openstreetmap.josm.data.projection.datum
Class SevenParameterDatum

java.lang.Object
  extended by org.openstreetmap.josm.data.projection.datum.AbstractDatum
      extended by org.openstreetmap.josm.data.projection.datum.SevenParameterDatum
All Implemented Interfaces:
Datum

public class SevenParameterDatum
extends AbstractDatum

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.


Field Summary
protected  double dx
           
protected  double dy
           
protected  double dz
           
protected  double rx
           
protected  double ry
           
protected  double rz
           
protected  double s
           
 
Fields inherited from class org.openstreetmap.josm.data.projection.datum.AbstractDatum
ellps, name, proj4Id
 
Constructor Summary
SevenParameterDatum(java.lang.String name, java.lang.String proj4Id, Ellipsoid ellps, double dx, double dy, double dz, double rx, double ry, double rz, double s)
           
 
Method Summary
 LatLon fromWGS84(LatLon ll)
          Convert lat/lon from WGS84 to this datum.
 LatLon toWGS84(LatLon ll)
          Convert lat/lon from this datum to WGS84 datum.
 
Methods inherited from class org.openstreetmap.josm.data.projection.datum.AbstractDatum
getEllipsoid, getName, getProj4Id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dx

protected double dx

dy

protected double dy

dz

protected double dz

rx

protected double rx

ry

protected double ry

rz

protected double rz

s

protected double s
Constructor Detail

SevenParameterDatum

public SevenParameterDatum(java.lang.String name,
                           java.lang.String proj4Id,
                           Ellipsoid ellps,
                           double dx,
                           double dy,
                           double dz,
                           double rx,
                           double ry,
                           double rz,
                           double s)
Parameters:
name - name of the datum
proj4Id - Proj.4 identifier for this datum (or null)
ellps - the ellipsoid used
dx - x offset in meters
dy - y offset in meters
dz - z offset in meters
rx - rotational parameter in seconds of arc
ry - rotational parameter in seconds of arc
rz - rotational parameter in seconds of arc
s - scale change in parts per million
Method Detail

toWGS84

public LatLon toWGS84(LatLon ll)
Description copied from interface: Datum
Convert lat/lon from this datum to WGS84 datum.


fromWGS84

public LatLon fromWGS84(LatLon ll)
Description copied from interface: Datum
Convert lat/lon from WGS84 to this datum.



JOSM