EPSG:9623

Affine geometric transformation

Attributes

Data source: EPSG

Information source: EPSG guidance note #7-2, http://www.epsg.org

Revision date: 2005-08-26

Formula

Note: These formulas have been transcribed from EPSG Guidance Note #7-2. Users are encouraged to use that document rather than the text which follows as reference because limitations in the transcription will be avoided.

General case.

The geometric representation of the affine transformation is:
XT = XT0   +  XS * k * MX * cos qX   +  YS * k * MY * sin qY
YT = YT0  –  XS * k * MX *  sin qX   +  YS * k * MY * cos qY 
where:

XT0 ,YT0  = the coordinates of the origin point of the source coordinate reference system, expressed in the target coordinate reference system;
MX , MY  = the length of one unit of the source axis, expressed in units of the target axis, for the first and second source and target axis pairs respectively;
qX , qY   = the angles about which the source coordinate reference system axes XS and YS must be rotated to coincide with the target coordinate reference system axes XT and YT respectively (counter-clockwise being positive).
k = point scale factor of the target coordinate reference system in a chosen reference point;
 
Comparing the algebraic representation with the parameters of the parameteric form (code 9624) it can be seen that the parametric and geometric forms of the affine transformation are related as follows:
A0  =  XT0
A1  = k * MX * cos qX  
A2  = k * MY * sin qY
B0  =  YT0
B1  =   – k * MX * sin qX
B2  =   k *MY * cos qY

Reversibility
For the Affine Geometric Transformation, the reverse operation can be described by a different formula, as shown below, in which the same parameter values as the forward transformation may be used:

XS = [( XT  – XT0) . cos qY  –  (YT – YT0) . sin qY ] / [k * MX  * cos (qX – qY)]
YS = [(XT   – XT0) . sin qX   +  (YT – YT0) . cos qX ] / [k * MY * cos (qX – qY)]

Orthogonal case

If the source coordinate reference system happens to have orthogonal axes, that is both axes are rotated through the same angle to bring them into the direction of the orthogonal target coordinate reference system axes, i.e. qX = qY = q, then the Affine Geometric Transformation can be simplified to:

XT = XT0   +   XS .  k . MX . cos q   +   YS .  k .  MY  . sin q
YT = YT0   –   XS .  k .  MX . sin q    +   YS .  k .  MY  . cos q

where:
q  = the angle through which the source coordinate reference system axes must be rotated to coincide with the target coordinate refderence system axes (counter-clockwise is positive). Alternatively, the bearing (clockwise positive) of the source coordinate reference system Y-axis measured relative to target coordinate reference system north.

The reverse formulas of the general case can also be simplified by replacing qX and qY with q:

XS = [(XT  – XTO) * cos q   –  (YT – YTO) * sin q ] / [k * MX ]
YS = [(XT   – XTO) * sin q   +  (YT – YTO) * cos q] / [k * MY ]

In the EPSG dataset this orthogonal case (code 9622) has been deprecated. The formulas for the general case should be used, inserting q for both qX  and qY. The case has been documented here as part of the progression through increasing constraints on the degrees of freedom between the general case and the Similarity Transformation.
MapTiler banner