Skip to content

Commit

Permalink
Update EPSG data
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Jun 21, 2024
1 parent 41ff28a commit f3b996a
Show file tree
Hide file tree
Showing 33 changed files with 690 additions and 277 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## [Unreleased]

### Changed
- Updates to data for Czechia, Denmark, ETRS89, Portugal and St Helena
- Updates to data for Czechia, Denmark, ETRS89, Germany, Portugal, St Helena and WGS84
- Minimum PHP version increased to 8.1

## [5.8.0] - 2024-02-03
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PHPCoord
PHPCoord is a PHP library to aid in handling coordinates. It can convert coordinates for a point from one system
to another and also calculate distance between points.

<!-- numOfCRS -->6982 different coordinate systems are supported, covering the entire globe. Some common systems supported include:
<!-- numOfCRS -->6988 different coordinate systems are supported, covering the entire globe. Some common systems supported include:
- WGS84 (GPS)
- OSGB36 (Great Britain)
- NAD27 and NAD83 (North America)
Expand Down
34 changes: 17 additions & 17 deletions docs/reflection/coordinateoperation/geocentric.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14851,23 +14851,6 @@ to WGS 84 (G2296) (Geocentric)

"


to WGS 84 (Geographic3D)
^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: WGS 84 to WGS 84 (G2139) (geog3D to geocen)
| Code: ``urn:ogc:def:coordinateOperation:EPSG::32772``
| Extent: World",".. code-block:: php

$point->geographicGeocentric(
to: Geographic3D::fromSRID(Geographic3D::EPSG_WGS_84)
)

"

WGS 84 (G2296)
--------------
``Geocentric::fromSRID(Geocentric::EPSG_WGS_84_G2296)``
Expand Down Expand Up @@ -14936,6 +14919,23 @@ to WGS 84 (G2296) (Geographic3D)

"


to WGS 84 (Geographic3D)
^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: WGS 84 to WGS 84 (G2296) (geog3D to geocen)
| Code: ``urn:ogc:def:coordinateOperation:EPSG::32772``
| Extent: World",".. code-block:: php

$point->geographicGeocentric(
to: Geographic3D::fromSRID(Geographic3D::EPSG_WGS_84)
)

"

WGS 84 (G730)
-------------
``Geocentric::fromSRID(Geocentric::EPSG_WGS_84_G730)``
Expand Down
60 changes: 55 additions & 5 deletions docs/reflection/coordinateoperation/geographic2d.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12323,6 +12323,31 @@ to EBBWV14 Grid (Projected)

"

ECML14-IRF
----------
``Geographic2D::fromSRID(Geographic2D::EPSG_ECML14_IRF)``

to ECML14 Grid (Projected)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: ECML14-TM
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10625``
| Extent: UK - London to Edinburgh",".. code-block:: php

$point->transverseMercator(
to: Projected::fromSRID(Projected::EPSG_ECML14_GRID),
latitudeOfNaturalOrigin: new Degree(53.8),
longitudeOfNaturalOrigin: new Degree(-1.6),
scaleFactorAtNaturalOrigin: new Unity(1),
falseEasting: new Metre(108021.121),
falseNorthing: new Metre(263196.8721)
)

"

ECML14_NB-IRF
-------------
``Geographic2D::fromSRID(Geographic2D::EPSG_ECML14_NB_IRF)``
Expand Down Expand Up @@ -112512,7 +112537,7 @@ to RBEPP12 Grid (Projected)

"| Name: RBEPP12-LCC
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10279``
| Extent: UK Reading to Penzance",".. code-block:: php
| Extent: UK - Reading to Penzance",".. code-block:: php

$point->lambertConicConformal2SP(
to: Projected::fromSRID(Projected::EPSG_RBEPP12_GRID),
Expand Down Expand Up @@ -122231,7 +122256,7 @@ to SMITB20 Grid (Projected)

"| Name: SMITB20-TM
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10274``
| Extent: UK Okehampton to Penstone",".. code-block:: php
| Extent: UK - Okehampton to Penstone",".. code-block:: php

$point->transverseMercator(
to: Projected::fromSRID(Projected::EPSG_SMITB20_GRID),
Expand Down Expand Up @@ -129105,6 +129130,31 @@ to Voirol 1879 / Sud Algerie (ancienne) (Projected)

"

WC05-IRF
--------
``Geographic2D::fromSRID(Geographic2D::EPSG_WC05_IRF)``

to WC05 Grid (Projected)
^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: WC05-TM
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10631``
| Extent: UK - London to Glasgow",".. code-block:: php

$point->transverseMercator(
to: Projected::fromSRID(Projected::EPSG_WC05_GRID),
latitudeOfNaturalOrigin: new Degree(53.45),
longitudeOfNaturalOrigin: new Degree(-2.15),
scaleFactorAtNaturalOrigin: new Unity(1),
falseEasting: new Metre(209900.2337),
falseNorthing: new Metre(401958.2494)
)

"

WGS 66
------
``Geographic2D::fromSRID(Geographic2D::EPSG_WGS_66)``
Expand Down Expand Up @@ -142665,18 +142715,18 @@ to WGS 72BE (Geographic2D)
"


to WGS 84 (G2139) (Geocentric)
to WGS 84 (G2296) (Geocentric)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: WGS 84 to WGS 84 (G2139) (geog2D to geocen)
"| Name: WGS 84 to WGS 84 (G2296) (geog2D to geocen)
| Code: ``urn:ogc:def:coordinateOperation:EPSG::32771``
| Extent: World",".. code-block:: php

$point->geographicGeocentric(
to: Geocentric::fromSRID(Geocentric::EPSG_WGS_84_G2139)
to: Geocentric::fromSRID(Geocentric::EPSG_WGS_84_G2296)
)

"
Expand Down
6 changes: 3 additions & 3 deletions docs/reflection/coordinateoperation/geographic3d.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8260,18 +8260,18 @@ to Tokyo + JSLD69 height (Compound)
"


to WGS 84 (G2139) (Geocentric)
to WGS 84 (G2296) (Geocentric)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: WGS 84 to WGS 84 (G2139) (geog3D to geocen)
"| Name: WGS 84 to WGS 84 (G2296) (geog3D to geocen)
| Code: ``urn:ogc:def:coordinateOperation:EPSG::32772``
| Extent: World",".. code-block:: php

$point->geographicGeocentric(
to: Geocentric::fromSRID(Geocentric::EPSG_WGS_84_G2139)
to: Geocentric::fromSRID(Geocentric::EPSG_WGS_84_G2296)
)

"
Expand Down
54 changes: 52 additions & 2 deletions docs/reflection/coordinateoperation/projected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9288,6 +9288,31 @@ to EBBWV14-IRF (Geographic2D)

"

ECML14 Grid
-----------
``Projected::fromSRID(Projected::EPSG_ECML14_GRID)``

to ECML14-IRF (Geographic2D)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: ECML14-TM
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10625``
| Extent: UK - London to Edinburgh",".. code-block:: php

$point->transverseMercator(
to: Geographic2D::fromSRID(Geographic2D::EPSG_ECML14_IRF),
latitudeOfNaturalOrigin: new Degree(53.8),
longitudeOfNaturalOrigin: new Degree(-1.6),
scaleFactorAtNaturalOrigin: new Unity(1),
falseEasting: new Metre(108021.121),
falseNorthing: new Metre(263196.8721)
)

"

ECML14_NB Grid
--------------
``Projected::fromSRID(Projected::EPSG_ECML14_NB_GRID)``
Expand Down Expand Up @@ -104595,7 +104620,7 @@ to RBEPP12-IRF (Geographic2D)

"| Name: RBEPP12-LCC
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10279``
| Extent: UK Reading to Penzance",".. code-block:: php
| Extent: UK - Reading to Penzance",".. code-block:: php

$point->lambertConicConformal2SP(
to: Geographic2D::fromSRID(Geographic2D::EPSG_RBEPP12_IRF),
Expand Down Expand Up @@ -110248,7 +110273,7 @@ to SMITB20-IRF (Geographic2D)

"| Name: SMITB20-TM
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10274``
| Extent: UK Okehampton to Penstone",".. code-block:: php
| Extent: UK - Okehampton to Penstone",".. code-block:: php

$point->transverseMercator(
to: Geographic2D::fromSRID(Geographic2D::EPSG_SMITB20_IRF),
Expand Down Expand Up @@ -115743,6 +115768,31 @@ to Voirol 1879 (Geographic2D)

"

WC05 Grid
---------
``Projected::fromSRID(Projected::EPSG_WC05_GRID)``

to WC05-IRF (Geographic2D)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: WC05-TM
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10631``
| Extent: UK - London to Glasgow",".. code-block:: php

$point->transverseMercator(
to: Geographic2D::fromSRID(Geographic2D::EPSG_WC05_IRF),
latitudeOfNaturalOrigin: new Degree(53.45),
longitudeOfNaturalOrigin: new Degree(-2.15),
scaleFactorAtNaturalOrigin: new Unity(1),
falseEasting: new Metre(209900.2337),
falseNorthing: new Metre(401958.2494)
)

"

WGS 72 / UTM zone 10N
---------------------
``Projected::fromSRID(Projected::EPSG_WGS_72_UTM_ZONE_10N)``
Expand Down
24 changes: 24 additions & 0 deletions docs/reflection/coordinatereferencesystem/compound.txt
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,18 @@ EBBWV14 Grid + ODN height
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::9944')


ECML14 Grid + ODN height
------------------------
| Extent: United Kingdom (UK) - on or related to the east coast mainline rail route from London (Kings Cross) via Newcastle to Edinburgh

.. code-block:: php

Compound::fromSRID(Compound::EPSG_ECML14_GRID_PLUS_ODN_HEIGHT)
Compound::fromSRID('urn:ogc:def:crs:EPSG::10627')
CoordinateReferenceSystem::fromSRID(Compound::EPSG_ECML14_GRID_PLUS_ODN_HEIGHT)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10627')


ECML14_NB Grid + ODN height
---------------------------
| Extent: United Kingdom (UK) - on or related to rail routes from Newcastle Central to Ashington via Benton North Junction, and the section from Bedlington to Morpeth
Expand Down Expand Up @@ -4659,6 +4671,18 @@ RGAF09 + Martinique 1987 height
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::9537')


RGAF09 / UTM zone 20N + Martinique 1987 height
----------------------------------------------
| Extent: Martinique - onshore

.. code-block:: php

Compound::fromSRID(Compound::EPSG_RGAF09_UTM_ZONE_20N_PLUS_MARTINIQUE_1987_HEIGHT)
Compound::fromSRID('urn:ogc:def:crs:EPSG::10633')
CoordinateReferenceSystem::fromSRID(Compound::EPSG_RGAF09_UTM_ZONE_20N_PLUS_MARTINIQUE_1987_HEIGHT)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10633')


RGF93 v1 / Lambert-93 + NGF-IGN69 height
----------------------------------------
| Extent: France - mainland onshore
Expand Down
6 changes: 3 additions & 3 deletions docs/reflection/coordinatereferencesystem/geocentric.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ EST97

ETRF2000
--------
| Extent: Europe - onshore and offshore: Albania; Andorra; Austria; Belgium; Bosnia and Herzegovina; Bulgaria; Croatia; Cyprus; Czechia; Denmark; Estonia; Faroe Islands; Finland; France; Germany; Gibraltar; Greece; Hungary; Ireland; Italy; Kosovo; Latvia; Liechtenstein; Lithuania; Luxembourg; Malta; Moldova; Monaco; Montenegro; Netherlands; North Macedonia; Norway including Svalbard and Jan Mayen; Poland; Portugal; Romania; San Marino; Serbia; Slovakia; Slovenia; Spain; Sweden; Switzerland; United Kingdom (UK) including Channel Islands and Isle of Man; Vatican City State
| Extent: Europe - onshore and offshore: Albania; Andorra; Austria; Belgium; Bosnia and Herzegovina; Bulgaria; Croatia; Czechia; Denmark; Estonia; Faroe Islands; Finland; France; Germany; Gibraltar; Greece; Hungary; Ireland; Italy; Kosovo; Latvia; Liechtenstein; Lithuania; Luxembourg; Malta; Moldova; Monaco; Montenegro; Netherlands; North Macedonia; Norway including Svalbard and Jan Mayen; Poland; Portugal - mainland; Romania; San Marino; Serbia; Slovakia; Slovenia; Spain - mainland and Balearic islands; Sweden; Switzerland; United Kingdom (UK) including Channel Islands and Isle of Man; Vatican City State

.. code-block:: php

Expand Down Expand Up @@ -261,7 +261,7 @@ Replaces ETRF2005 (code 8397). ETRF2014 is technically superior to ETRF2000 but

ETRF2020
--------
| Extent: Europe - onshore and offshore: Albania; Andorra; Austria; Belgium; Bosnia and Herzegovina; Bulgaria; Croatia; Cyprus; Czechia; Denmark; Estonia; Faroe Islands; Finland; France; Germany; Gibraltar; Greece; Hungary; Ireland; Italy; Kosovo; Latvia; Liechtenstein; Lithuania; Luxembourg; Malta; Moldova; Monaco; Montenegro; Netherlands; North Macedonia; Norway including Svalbard and Jan Mayen; Poland; Portugal; Romania; San Marino; Serbia; Slovakia; Slovenia; Spain; Sweden; Switzerland; United Kingdom (UK) including Channel Islands and Isle of Man; Vatican City State
| Extent: Europe - onshore and offshore: Albania; Andorra; Austria; Belgium; Bosnia and Herzegovina; Bulgaria; Croatia; Czechia; Denmark; Estonia; Faroe Islands; Finland; France; Germany; Gibraltar; Greece; Hungary; Ireland; Italy; Kosovo; Latvia; Liechtenstein; Lithuania; Luxembourg; Malta; Moldova; Monaco; Montenegro; Netherlands; North Macedonia; Norway including Svalbard and Jan Mayen; Poland; Portugal - mainland; Romania; San Marino; Serbia; Slovakia; Slovenia; Spain - mainland and Balearic islands; Sweden; Switzerland; United Kingdom (UK) including Channel Islands and Isle of Man; Vatican City State

.. code-block:: php

Expand Down Expand Up @@ -378,7 +378,7 @@ Replaces ETRF96 (code 7926). Replaced by ETRF2000 (code 7930).

ETRS89
------
| Extent: Europe - onshore and offshore: Albania; Andorra; Austria; Belgium; Bosnia and Herzegovina; Bulgaria; Croatia; Cyprus; Czechia; Denmark; Estonia; Faroe Islands; Finland; France; Germany; Gibraltar; Greece; Hungary; Ireland; Italy; Kosovo; Latvia; Liechtenstein; Lithuania; Luxembourg; Malta; Moldova; Monaco; Montenegro; Netherlands; North Macedonia; Norway including Svalbard and Jan Mayen; Poland; Portugal; Romania; San Marino; Serbia; Slovakia; Slovenia; Spain; Sweden; Switzerland; United Kingdom (UK) including Channel Islands and Isle of Man; Vatican City State
| Extent: Europe - onshore and offshore: Albania; Andorra; Austria; Belgium; Bosnia and Herzegovina; Bulgaria; Croatia; Czechia; Denmark; Estonia; Faroe Islands; Finland; France; Germany; Gibraltar; Greece; Hungary; Ireland; Italy; Kosovo; Latvia; Liechtenstein; Lithuania; Luxembourg; Malta; Moldova; Monaco; Montenegro; Netherlands; North Macedonia; Norway including Svalbard and Jan Mayen; Poland; Portugal - mainland; Romania; San Marino; Serbia; Slovakia; Slovenia; Spain - mainland and Balearic islands; Sweden; Switzerland; United Kingdom (UK) including Channel Islands and Isle of Man; Vatican City State

.. code-block:: php

Expand Down
32 changes: 31 additions & 1 deletion docs/reflection/coordinatereferencesystem/geographic2d.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1425,6 +1425,21 @@ EBBWV14-IRF

Intermediate CRS created in 2022 to assist the emulation of the ETRS89 / EBBWV14 SnakeGrid projected CRS through transformation ETRS89 to EBBWV14-IRF (1) (code 9941) used in conjunction with the EBBWV14-TM map projection (code 9942).

ECML14-IRF
----------
| Extent: United Kingdom (UK) - on or related to the east coast mainline rail route from London (Kings Cross) via Newcastle to Edinburgh

.. code-block:: php

Geographic2D::fromSRID(Geographic2D::EPSG_ECML14_IRF)
Geographic2D::fromSRID('urn:ogc:def:crs:EPSG::10623')
Geographic::fromSRID(Geographic2D::EPSG_ECML14_IRF)
Geographic::fromSRID('urn:ogc:def:crs:EPSG::10623')
CoordinateReferenceSystem::fromSRID(Geographic2D::EPSG_ECML14_IRF)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10623')

Intermediate CRS created in 2024 to assist the emulation of the ETRS89 / ECML14 SnakeGrid projected CRS through transformation ETRS89 to ECML14-IRF (1) (code 10624) used in conjunction with the ECML14-TM map projection (code 10625).

ECML14_NB-IRF
-------------
| Extent: United Kingdom (UK) - on or related to rail routes from Newcastle Central to Ashington via Benton North Junction, and the section from Bedlington to Morpeth
Expand Down Expand Up @@ -1751,7 +1766,7 @@ Replaces ETRF96 (code 9065). Replaced by ETRF2000 (code 9067).

ETRS89
------
| Extent: Europe - onshore and offshore: Albania; Andorra; Austria; Belgium; Bosnia and Herzegovina; Bulgaria; Croatia; Cyprus; Czechia; Denmark; Estonia; Faroe Islands; Finland; France; Germany; Gibraltar; Greece; Hungary; Ireland; Italy; Kosovo; Latvia; Liechtenstein; Lithuania; Luxembourg; Malta; Moldova; Monaco; Montenegro; Netherlands; North Macedonia; Norway including Svalbard and Jan Mayen; Poland; Portugal; Romania; San Marino; Serbia; Slovakia; Slovenia; Spain; Sweden; Switzerland; United Kingdom (UK) including Channel Islands and Isle of Man; Vatican City State
| Extent: Europe - onshore and offshore: Albania; Andorra; Austria; Belgium; Bosnia and Herzegovina; Bulgaria; Croatia; Czechia; Denmark; Estonia; Faroe Islands; Finland; France; Germany; Gibraltar; Greece; Hungary; Ireland; Italy; Kosovo; Latvia; Liechtenstein; Lithuania; Luxembourg; Malta; Moldova; Monaco; Montenegro; Netherlands; North Macedonia; Norway including Svalbard and Jan Mayen; Poland; Portugal - mainland; Romania; San Marino; Serbia; Slovakia; Slovenia; Spain - mainland and Balearic islands; Sweden; Switzerland; United Kingdom (UK) including Channel Islands and Isle of Man; Vatican City State

.. code-block:: php

Expand Down Expand Up @@ -8251,6 +8266,21 @@ Voirol 1879 (Paris)

The appropriate usage of CRSs using the Voirol 1875 and 1879 datums is lost in antiquity. They differ by about 9 metres. Oil industry references to one could in reality be to either. All replaced by Nord Sahara 1959 (CRS code 4307).

WC05-IRF
--------
| Extent: United Kingdom (UK) - on or related to the west coast mainline rail route from London (Euston) via Carlisle to Glasgow

.. code-block:: php

Geographic2D::fromSRID(Geographic2D::EPSG_WC05_IRF)
Geographic2D::fromSRID('urn:ogc:def:crs:EPSG::10628')
Geographic::fromSRID(Geographic2D::EPSG_WC05_IRF)
Geographic::fromSRID('urn:ogc:def:crs:EPSG::10628')
CoordinateReferenceSystem::fromSRID(Geographic2D::EPSG_WC05_IRF)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10628')

Intermediate CRS created in 2024 to assist the emulation of the ETRS89 / WC05 SnakeGrid projected CRS through transformation ETRS89 to WC05-IRF (1) (code 10629) used in conjunction with the WC05-TM map projection (code 10631).

WGS 66
------
| Extent: World
Expand Down
Loading

0 comments on commit f3b996a

Please sign in to comment.