| @@ 191-208 (lines=18) @@ | ||
| 188 | * Reference values for transformation are taken from http://www.globalmapper.com/helpv9/datum_list.htm |
|
| 189 | * @return void |
|
| 190 | */ |
|
| 191 | public function toED50() |
|
| 192 | { |
|
| 193 | if ($this->refEll == RefEll::international1924()) { |
|
| 194 | return; |
|
| 195 | } |
|
| 196 | ||
| 197 | $this->toWGS84(); |
|
| 198 | ||
| 199 | $tx = 87; |
|
| 200 | $ty = 98; |
|
| 201 | $tz = 121; |
|
| 202 | $s = 0; |
|
| 203 | $rx = deg2rad(0); |
|
| 204 | $ry = deg2rad(0); |
|
| 205 | $rz = deg2rad(0); |
|
| 206 | ||
| 207 | $this->transformDatum(RefEll::international1924(), $tx, $ty, $tz, $s, $rx, $ry, $rz); |
|
| 208 | } |
|
| 209 | ||
| 210 | /** |
|
| 211 | * Convert this LatLng object to NAD27 datum. |
|
| @@ 215-232 (lines=18) @@ | ||
| 212 | * Reference values for transformation are taken from Wikipedia |
|
| 213 | * @return void |
|
| 214 | */ |
|
| 215 | public function toNAD27() |
|
| 216 | { |
|
| 217 | if ($this->refEll == RefEll::clarke1866()) { |
|
| 218 | return; |
|
| 219 | } |
|
| 220 | ||
| 221 | $this->toWGS84(); |
|
| 222 | ||
| 223 | $tx = 8; |
|
| 224 | $ty = -160; |
|
| 225 | $tz = -176; |
|
| 226 | $s = 0; |
|
| 227 | $rx = deg2rad(0); |
|
| 228 | $ry = deg2rad(0); |
|
| 229 | $rz = deg2rad(0); |
|
| 230 | ||
| 231 | $this->transformDatum(RefEll::clarke1866(), $tx, $ty, $tz, $s, $rx, $ry, $rz); |
|
| 232 | } |
|
| 233 | ||
| 234 | /** |
|
| 235 | * Convert this LatLng object to Ireland 1975 datum. |
|