Skip to content

Commit f13449b

Browse files
committed
Update EPSG data
1 parent 0baa7a2 commit f13449b

File tree

27 files changed

+300
-90
lines changed

27 files changed

+300
-90
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
## [5.10.1] - 2024-09-24
6+
### Fixed
7+
- Compatibility with opcache preloading
8+
59
## [5.10.0] - 2024-08-23
610
### Added
711
- Added a new method `isWithinCRSBoundingArea()` on most `Point` objects to check if they lie within the bounds
@@ -345,8 +349,9 @@ Initial release of this fork (based off of v2.3 of original)
345349
- Eastings and northings are rounded to 1m, and lat/long to 5dp (approx 1m) to avoid any misconceptions that precision is the same thing as accuracy.
346350
- When calculating surface distances, a more accurate mean radius is now used rather than that derived from historical definitions of a nautical mile
347351

348-
[Unreleased]: https://github.com/dvdoug/PHPCoord/compare/v5.10.0..master
352+
[Unreleased]: https://github.com/dvdoug/PHPCoord/compare/v5.10.1..master
349353

354+
[5.10.1]: https://github.com/dvdoug/PHPCoord/compare/v5.10.0..v5.10.1
350355
[5.10.0]: https://github.com/dvdoug/PHPCoord/compare/v5.9.2..v5.10.0
351356
[5.9.2]: https://github.com/dvdoug/PHPCoord/compare/v5.9.1..v5.9.2
352357
[5.9.1]: https://github.com/dvdoug/PHPCoord/compare/v5.9.0..v5.9.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PHPCoord
99
PHPCoord is a PHP library to aid in handling coordinates. It can convert coordinates for a point from one system
1010
to another and also calculate distance between points.
1111

12-
<!-- numOfCRS -->6993 different coordinate systems are supported, covering the entire globe. Some common systems supported include:
12+
<!-- numOfCRS -->6996 different coordinate systems are supported, covering the entire globe. Some common systems supported include:
1313
- WGS84 (GPS)
1414
- OSGB36 (Great Britain)
1515
- NAD27 and NAD83 (North America)

docs/reflection/coordinateoperation/coordinateoperationmethods.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,14 @@ Geog3D to Geog2D+GravityRelatedHeight (ITAL2005)
310310
'urn:ogc:def:method:EPSG::1105'
311311

312312

313+
Geog3D to Geog2D+GravityRelatedHeight (NGS bin)
314+
-----------------------------------------------
315+
.. code-block:: php
316+
317+
CoordinateOperationMethods::EPSG_GEOG3D_TO_GEOG2D_PLUS_GRAVITYRELATEDHEIGHT_NGS_BIN
318+
'urn:ogc:def:method:EPSG::1135'
319+
320+
313321
Geog3D to Geog2D+GravityRelatedHeight (NRCan byn)
314322
-------------------------------------------------
315323
.. code-block:: php
@@ -462,6 +470,14 @@ Geographic3D to GravityRelatedHeight (ITAL2005)
462470
'urn:ogc:def:method:EPSG::1106'
463471

464472

473+
Geographic3D to GravityRelatedHeight (NGS bin)
474+
----------------------------------------------
475+
.. code-block:: php
476+
477+
CoordinateOperationMethods::EPSG_GEOGRAPHIC3D_TO_GRAVITYRELATEDHEIGHT_NGS_BIN
478+
'urn:ogc:def:method:EPSG::1134'
479+
480+
465481
Geographic3D to GravityRelatedHeight (NRCan byn)
466482
------------------------------------------------
467483
.. code-block:: php

docs/reflection/coordinatereferencesystem/compound.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,18 @@ EOS21 Grid + ODN height
355355
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::9742')
356356

357357

358+
ETRF2000 + EOMA 1980 height
359+
---------------------------
360+
| Extent: Hungary
361+
362+
.. code-block:: php
363+
364+
Compound::fromSRID(Compound::EPSG_ETRF2000_PLUS_EOMA_1980_HEIGHT)
365+
Compound::fromSRID('urn:ogc:def:crs:EPSG::10659')
366+
CoordinateReferenceSystem::fromSRID(Compound::EPSG_ETRF2000_PLUS_EOMA_1980_HEIGHT)
367+
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10659')
368+
369+
358370
ETRF2000-PL + Baltic 1986 height
359371
--------------------------------
360372
| Extent: Poland - onshore
@@ -2137,6 +2149,18 @@ GWWWA22 Grid + ODN height
21372149
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10223')
21382150

21392151

2152+
HD72 / EOV + EOMA 1980 height
2153+
-----------------------------
2154+
| Extent: Hungary
2155+
2156+
.. code-block:: php
2157+
2158+
Compound::fromSRID(Compound::EPSG_HD72_EOV_PLUS_EOMA_1980_HEIGHT)
2159+
Compound::fromSRID('urn:ogc:def:crs:EPSG::10660')
2160+
CoordinateReferenceSystem::fromSRID(Compound::EPSG_HD72_EOV_PLUS_EOMA_1980_HEIGHT)
2161+
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10660')
2162+
2163+
21402164
HS2 Survey Grid + HS2-VRF height
21412165
--------------------------------
21422166
| Extent: UK - HS2 phases 1 and 2a railway corridor from London to Birmingham, Lichfield and Crewe

docs/reflection/coordinatereferencesystem/geographic2d.txt

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -662,20 +662,6 @@ Bermuda 1957
662662

663663
Replaced by BDA2000 (CRS code 4762).
664664

665-
Bern 1898 (Bern)
666-
----------------
667-
| Extent: Liechtenstein; Switzerland
668-
669-
.. code-block:: php
670-
671-
Geographic2D::fromSRID(Geographic2D::EPSG_BERN_1898_BERN)
672-
Geographic2D::fromSRID('urn:ogc:def:crs:EPSG::4801')
673-
Geographic::fromSRID(Geographic2D::EPSG_BERN_1898_BERN)
674-
Geographic::fromSRID('urn:ogc:def:crs:EPSG::4801')
675-
CoordinateReferenceSystem::fromSRID(Geographic2D::EPSG_BERN_1898_BERN)
676-
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::4801')
677-
678-
679665
Bern 1938
680666
---------
681667
| Extent: Liechtenstein; Switzerland
@@ -793,6 +779,21 @@ CH1903
793779

794780
Replaced by CH1903+.
795781

782+
CH1903 (Bern)
783+
-------------
784+
| Extent: Liechtenstein; Switzerland
785+
786+
.. code-block:: php
787+
788+
Geographic2D::fromSRID(Geographic2D::EPSG_CH1903_BERN)
789+
Geographic2D::fromSRID('urn:ogc:def:crs:EPSG::4801')
790+
Geographic::fromSRID(Geographic2D::EPSG_CH1903_BERN)
791+
Geographic::fromSRID('urn:ogc:def:crs:EPSG::4801')
792+
CoordinateReferenceSystem::fromSRID(Geographic2D::EPSG_CH1903_BERN)
793+
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::4801')
794+
795+
Replaced by CH1903 (CRS code 4149).
796+
796797
CH1903+
797798
-------
798799
| Extent: Liechtenstein; Switzerland

docs/reflection/coordinatereferencesystem/projected.txt

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2012,19 +2012,6 @@ Bermuda 1957 / UTM zone 20N
20122012

20132013
Replaced by BDA2000 / Bermuda 2000 National Grid (alias BNG2000) (CRS code 3770).
20142014

2015-
Bern 1898 (Bern) / LV03C
2016-
------------------------
2017-
| Extent: Liechtenstein; Switzerland
2018-
2019-
.. code-block:: php
2020-
2021-
Projected::fromSRID(Projected::EPSG_BERN_1898_BERN_LV03C)
2022-
Projected::fromSRID('urn:ogc:def:crs:EPSG::21780')
2023-
CoordinateReferenceSystem::fromSRID(Projected::EPSG_BERN_1898_BERN_LV03C)
2024-
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::21780')
2025-
2026-
In Switzerland, replaced by CH1903 / LV03 (CRS code 21781). For use in Liechtenstein may be implemented through Greenwich based equivalent CRS code 21782.
2027-
20282015
Bissau / UTM zone 28N
20292016
---------------------
20302017
| Extent: Guinea-Bissau - onshore
@@ -2945,6 +2932,19 @@ CGRS93 / Cyprus Local Transverse Mercator
29452932
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::6312')
29462933

29472934

2935+
CH1903 (Bern) / LV03C
2936+
---------------------
2937+
| Extent: Liechtenstein; Switzerland
2938+
2939+
.. code-block:: php
2940+
2941+
Projected::fromSRID(Projected::EPSG_CH1903_BERN_LV03C)
2942+
Projected::fromSRID('urn:ogc:def:crs:EPSG::21780')
2943+
CoordinateReferenceSystem::fromSRID(Projected::EPSG_CH1903_BERN_LV03C)
2944+
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::21780')
2945+
2946+
In Switzerland, replaced by CH1903 / LV03 (CRS code 21781). For use in Liechtenstein may be implemented through Greenwich based equivalent CRS code 21782.
2947+
29482948
CH1903 / LV03
29492949
-------------
29502950
| Extent: Liechtenstein; Switzerland
@@ -11236,7 +11236,7 @@ See Gulshan 303 / TM 90 NE (CRS code 3106) for topographic mapping and offshore
1123611236

1123711237
Gulshan 303 / TM 90 NE
1123811238
----------------------
11239-
| Extent: Bangladesh, Bangladesh - onshore
11239+
| Extent: Bangladesh - onshore, Bangladesh
1124011240

1124111241
.. code-block:: php
1124211242

@@ -15809,7 +15809,7 @@ Introduced in 1924. In Croatia replaced by HTRS96 / Croatia TM (CRS code 3765).
1580915809

1581015810
MGI 1901 / Balkans zone 7
1581115811
-------------------------
15812-
| Extent: North Macedonia, Bosnia and Herzegovina - east of 19°30'E; Kosovo; Montenegro - east of 19°30'E; Serbia - between 19°30'E and 22°30'E
15812+
| Extent: Bosnia and Herzegovina - east of 19°30'E; Kosovo; Montenegro - east of 19°30'E; Serbia - between 19°30'E and 22°30'E, North Macedonia
1581315813

1581415814
.. code-block:: php
1581515815

@@ -34104,7 +34104,7 @@ Adopted by the Canadian federal government in 1998 and the provincial government
3410434104

3410534105
NAD83(CSRS)v2 / UTM zone 13N
3410634106
----------------------------
34107-
| Extent: Canada - Saskatchewan, Canada between 108°W and 102°W - Northwest Territories, Nunavut, Saskatchewan
34107+
| Extent: Canada between 108°W and 102°W - Northwest Territories, Nunavut, Saskatchewan, Canada - Saskatchewan
3410834108

3410934109
.. code-block:: php
3411034110

@@ -55496,6 +55496,19 @@ SIRGAS 2000 / Brazil Polyconic
5549655496

5549755497
Replaces SAD69 / Brazil Polyconic (CRS code 29101) and SAD69(96) / Brazil Polyconic (CRS code 5530).
5549855498

55499+
SIRGAS 2000 / Porto Alegre TM
55500+
-----------------------------
55501+
| Extent: Brazil - Porto Alegre municipality
55502+
55503+
.. code-block:: php
55504+
55505+
Projected::fromSRID(Projected::EPSG_SIRGAS_2000_PORTO_ALEGRE_TM)
55506+
Projected::fromSRID('urn:ogc:def:crs:EPSG::10665')
55507+
CoordinateReferenceSystem::fromSRID(Projected::EPSG_SIRGAS_2000_PORTO_ALEGRE_TM)
55508+
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10665')
55509+
55510+
Replaces the Porto Alegre Gauss-Kruger Cartographic Reference System of the Brazilian General Chart Commission (SCR-CCG) from 2013-06-20.
55511+
5549955512
SIRGAS 2000 / UTM zone 11N
5550055513
--------------------------
5550155514
| Extent: Latin America between 120°W and 114°W, northern hemisphere

docs/reflection/datum/datum.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,6 +1931,8 @@ Deutsche Bahn Reference System
19311931

19321932
Defined by transformation from ETRS89 (transformation code 5826) to be an average of DHDN realizations across all German states.
19331933

1934+
In DB_REF2016 only the vertical CRS component is updated, the geodetic CRS component of DB_REF is unchanged.
1935+
19341936
Deutsches Hauptdreiecksnetz
19351937
---------------------------
19361938
| Type: Geodetic

docs/reflection/numOfCRS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.. |numOfCRS| replace:: 6993
1+
.. |numOfCRS| replace:: 6996

src/CoordinateOperation/CRSTransformationsEurope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3359,7 +3359,7 @@ class CRSTransformationsEurope
33593359
],
33603360
[
33613361
'operation' => 'urn:ogc:def:coordinateOperation:EPSG::1765',
3362-
'name' => 'Bern 1898 (Bern) to CH1903 (1)',
3362+
'name' => 'CH1903 (Bern) to CH1903 (1)',
33633363
'source_crs' => 'urn:ogc:def:crs:EPSG::4801',
33643364
'target_crs' => 'urn:ogc:def:crs:EPSG::4149',
33653365
'accuracy' => 0.0,

src/CoordinateOperation/CRSTransformationsSouthAmerica.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,13 @@ class CRSTransformationsSouthAmerica
11311131
'target_crs' => 'urn:ogc:def:crs:EPSG::4326',
11321132
'accuracy' => 1.0,
11331133
],
1134+
[
1135+
'operation' => 'urn:ogc:def:coordinateOperation:EPSG::10664',
1136+
'name' => 'Porto Alegre Transverse Mercator',
1137+
'source_crs' => 'urn:ogc:def:crs:EPSG::4674',
1138+
'target_crs' => 'urn:ogc:def:crs:EPSG::10665',
1139+
'accuracy' => 0,
1140+
],
11341141
[
11351142
'operation' => 'urn:ogc:def:coordinateOperation:EPSG::15894',
11361143
'name' => 'SIRGAS 2000 to WGS 84 (1)',

0 commit comments

Comments
 (0)