Total Complexity | 9 |
Total Lines | 83 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class IsraeliTMRef extends TransverseMercator |
||
13 | { |
||
14 | /** |
||
15 | * @return RefEll |
||
16 | */ |
||
17 | public function getReferenceEllipsoid(): RefEll |
||
18 | { |
||
19 | return RefEll::grs80(); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @return float |
||
24 | */ |
||
25 | public function getScaleFactor(): float |
||
26 | { |
||
27 | return 1.0000067; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return int |
||
32 | */ |
||
33 | public function getOriginNorthing(): int |
||
34 | { |
||
35 | return 631556; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return int |
||
40 | */ |
||
41 | public function getOriginEasting(): int |
||
42 | { |
||
43 | return 222286; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return float |
||
48 | */ |
||
49 | public function getOriginLatitude(): float |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return float |
||
56 | */ |
||
57 | public function getOriginLongitude(): float |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @param int $x |
||
64 | * @param int $y |
||
65 | * @param int $z |
||
66 | */ |
||
67 | public function __construct($x, $y, $z = 0) |
||
70 | } |
||
71 | |||
72 | /** |
||
73 | * Convert this grid reference into a latitude and longitude. |
||
74 | * @return LatLng |
||
75 | */ |
||
76 | public function toLatLng(): LatLng |
||
77 | { |
||
78 | $N = $this->y; |
||
79 | $E = $this->x; |
||
80 | $N0 = $this->getOriginNorthing(); |
||
81 | $E0 = $this->getOriginEasting(); |
||
82 | $phi0 = $this->getOriginLatitude(); |
||
83 | $lambda0 = $this->getOriginLongitude(); |
||
84 | |||
85 | return $this->convertToLatitudeLongitude($N, $E, $N0, $E0, $phi0, $lambda0); |
||
86 | } |
||
87 | |||
88 | /** |
||
89 | * String version of coordinate. |
||
90 | * @return string |
||
91 | */ |
||
92 | public function __toString(): string |
||
95 | } |
||
96 | } |
||
97 |