Skip to content

Commit

Permalink
Update EPSG data
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Sep 30, 2023
1 parent 305e8ea commit 6d8d872
Show file tree
Hide file tree
Showing 36 changed files with 644 additions and 41 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## [Unreleased]
### Changed
- Updates to data for Australia, Canada, Netherlands, Portugal, South Korea and UK
- Updates to data for Australia, Austria, Canada, Germany, Italy, Netherlands, Portugal, South Korea, UK and USA

## [5.5.0] - 2023-07-07
### Added
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 -->6937 different coordinate systems are supported, covering the entire globe. Some common systems supported include:
<!-- numOfCRS -->6942 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
21 changes: 21 additions & 0 deletions docs/reflection/coordinateoperation/compound.txt
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,27 @@ to ETRS89 (Geographic3D)

"

ETRS89/DREF91/2016 + DHHN2016 height
------------------------------------
``Compound::fromSRID(Compound::EPSG_ETRS89_DREF91_2016_PLUS_DHHN2016_HEIGHT)``

to ETRS89/DREF91/2016 (Geographic3D)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: ETRS89/DREF91/2016 to ETRS89/DREF91/2016 + DHHN2016 height (1)
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10295``
| Extent: Germany - onshore",".. code-block:: php

$point->geographic3DTo2DPlusGravityHeightFromGrid(
to: Geographic3D::fromSRID(Geographic3D::EPSG_ETRS89_DREF91_2016),
geoidHeightCorrectionModelFile: DATETRS89DHHN2016Provider->provideGrid()
)

"

GDA2020 + AHD height
--------------------
``Compound::fromSRID(Compound::EPSG_GDA2020_PLUS_AHD_HEIGHT)``
Expand Down
20 changes: 20 additions & 0 deletions docs/reflection/coordinateoperation/geocentric.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,26 @@ to Australian Antarctic (Geographic3D)

"

BBT2000
-------
``Geocentric::fromSRID(Geocentric::EPSG_BBT2000)``

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

"| Name: geocentric to geographic3D
| Code: ``urn:ogc:def:coordinateOperation:EPSG::15592``
| Extent: World",".. code-block:: php

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

"

BDA2000
-------
``Geocentric::fromSRID(Geocentric::EPSG_BDA2000)``
Expand Down
105 changes: 105 additions & 0 deletions docs/reflection/coordinateoperation/geographic2d.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3139,6 +3139,68 @@ to PTRA08 (Geographic2D)

"

BBT2000
-------
``Geographic2D::fromSRID(Geographic2D::EPSG_BBT2000)``

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

"| Name: geographic3D to geographic2D
| Code: ``urn:ogc:def:coordinateOperation:EPSG::15593``
| Extent: World",".. code-block:: php

$point->threeDToTwoD(
to: Geographic3D::fromSRID(Geographic3D::EPSG_BBT2000)
)

"


to BBT2000 / BBT-TM (Projected)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: Brenner Base Tunnel TM
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10476``
| Extent: Europe - Brenner",".. code-block:: php

$point->transverseMercator(
to: Projected::fromSRID(Projected::EPSG_BBT2000_BBT_TM),
latitudeOfNaturalOrigin: new Degree(46.980776305556),
longitudeOfNaturalOrigin: new Degree(11.52849375),
scaleFactorAtNaturalOrigin: new Unity(1.000121),
falseEasting: new Metre(20000),
falseNorthing: new Metre(100000)
)

"


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

"| Name: BBT2000 to WGS 84 (1)
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10478``
| Extent: Europe - Brenner",".. code-block:: php

$point->geocentricTranslation(
to: Geographic2D::fromSRID(Geographic2D::EPSG_WGS_84),
xAxisTranslation: new Metre(0),
yAxisTranslation: new Metre(0),
zAxisTranslation: new Metre(0)
)

"

BD50
----
``Geographic2D::fromSRID(Geographic2D::EPSG_BD50)``
Expand Down Expand Up @@ -54410,6 +54472,29 @@ to NAD83 / Statistics Canada Lambert (Projected)
"


to NAD83 / TWDB GM (Projected)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: TWDB Groundwater Modeling
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10479``
| Extent: USA - Texas",".. code-block:: php

$point->albersEqualArea(
to: Projected::fromSRID(Projected::EPSG_NAD83_TWDB_GM),
latitudeOfFalseOrigin: new Degree(31.25),
longitudeOfFalseOrigin: new Degree(-100),
latitudeOf1stStandardParallel: new Degree(27.5),
latitudeOf2ndStandardParallel: new Degree(35),
eastingAtFalseOrigin: new USSurveyFoot(4921250),
northingAtFalseOrigin: new USSurveyFoot(19685000)
)

"


to NAD83 / Tennessee (Projected)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
Expand Down Expand Up @@ -135288,6 +135373,26 @@ to Azores Oriental 1940 (Geographic2D)
"


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

"| Name: BBT2000 to WGS 84 (1)
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10478``
| Extent: Europe - Brenner",".. code-block:: php

$point->geocentricTranslation(
to: Geographic2D::fromSRID(Geographic2D::EPSG_BBT2000),
xAxisTranslation: new Metre(-0),
yAxisTranslation: new Metre(-0),
zAxisTranslation: new Metre(-0)
)

"


to BD72 (Geographic2D)
^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
Expand Down
56 changes: 56 additions & 0 deletions docs/reflection/coordinateoperation/geographic3d.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,26 @@ to Australian Antarctic (Geographic2D)

"

BBT2000
-------
``Geographic3D::fromSRID(Geographic3D::EPSG_BBT2000)``

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

"| Name: geographic3D to geographic2D
| Code: ``urn:ogc:def:coordinateOperation:EPSG::15593``
| Extent: World",".. code-block:: php

$point->threeDToTwoD(
to: Geographic2D::fromSRID(Geographic2D::EPSG_BBT2000)
)

"

BDA2000
-------
``Geographic3D::fromSRID(Geographic3D::EPSG_BDA2000)``
Expand Down Expand Up @@ -1575,6 +1595,24 @@ ETRS89/DREF91/2016
------------------
``Geographic3D::fromSRID(Geographic3D::EPSG_ETRS89_DREF91_2016)``

to DHHN2016 height (Vertical)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: ETRS89/DREF91/2016 to DHHN2016 height (1)
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10294``
| Extent: Germany",".. code-block:: php

$point->geographic3DToGravityHeightFromGrid(
to: Vertical::fromSRID(Vertical::EPSG_DHHN2016_HEIGHT),
geoidHeightCorrectionModelFile: DATETRS89DHHN2016Provider->provideGrid()
)

"


to ETRS89/DREF91/2016 (Geographic2D)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
Expand All @@ -1591,6 +1629,24 @@ to ETRS89/DREF91/2016 (Geographic2D)

"


to ETRS89/DREF91/2016 + DHHN2016 height (Compound)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "EPSG", "PHPCoord"
:widths: 40, 60

"| Name: ETRS89/DREF91/2016 to ETRS89/DREF91/2016 + DHHN2016 height (1)
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10295``
| Extent: Germany - onshore",".. code-block:: php

$point->geographic3DTo2DPlusGravityHeightFromGrid(
to: Compound::fromSRID(Compound::EPSG_ETRS89_DREF91_2016_PLUS_DHHN2016_HEIGHT),
geoidHeightCorrectionModelFile: DATETRS89DHHN2016Provider->provideGrid()
)

"

FEH2010
-------
``Geographic3D::fromSRID(Geographic3D::EPSG_FEH2010)``
Expand Down
51 changes: 51 additions & 0 deletions docs/reflection/coordinateoperation/projected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1825,6 +1825,31 @@ to Azores Oriental 1995 (Geographic2D)

"

BBT2000 / BBT-TM
----------------
``Projected::fromSRID(Projected::EPSG_BBT2000_BBT_TM)``

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

"| Name: Brenner Base Tunnel TM
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10476``
| Extent: Europe - Brenner",".. code-block:: php

$point->transverseMercator(
to: Geographic2D::fromSRID(Geographic2D::EPSG_BBT2000),
latitudeOfNaturalOrigin: new Degree(46.980776305556),
longitudeOfNaturalOrigin: new Degree(11.52849375),
scaleFactorAtNaturalOrigin: new Unity(1.000121),
falseEasting: new Metre(20000),
falseNorthing: new Metre(100000)
)

"

BD50 (Brussels) / Belge Lambert 50
----------------------------------
``Projected::fromSRID(Projected::EPSG_BD50_BRUSSELS_BELGE_LAMBERT_50)``
Expand Down Expand Up @@ -44742,6 +44767,32 @@ to NAD83 (Geographic2D)

"

NAD83 / TWDB GM
---------------
``Projected::fromSRID(Projected::EPSG_NAD83_TWDB_GM)``

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

"| Name: TWDB Groundwater Modeling
| Code: ``urn:ogc:def:coordinateOperation:EPSG::10479``
| Extent: USA - Texas",".. code-block:: php

$point->albersEqualArea(
to: Geographic2D::fromSRID(Geographic2D::EPSG_NAD83),
latitudeOfFalseOrigin: new Degree(31.25),
longitudeOfFalseOrigin: new Degree(-100),
latitudeOf1stStandardParallel: new Degree(27.5),
latitudeOf2ndStandardParallel: new Degree(35),
eastingAtFalseOrigin: new USSurveyFoot(4921250),
northingAtFalseOrigin: new USSurveyFoot(19685000)
)

"

NAD83 / Tennessee
-----------------
``Projected::fromSRID(Projected::EPSG_NAD83_TENNESSEE)``
Expand Down
12 changes: 12 additions & 0 deletions docs/reflection/coordinatereferencesystem/geocentric.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ Australian Antarctic
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::4930')


BBT2000
-------
| Extent: Austria and Italy - on or related to the Brenner Base Tunnel rail route from Innsbruck to Fortezza (Franzensfeste)

.. code-block:: php

Geocentric::fromSRID(Geocentric::EPSG_BBT2000)
Geocentric::fromSRID('urn:ogc:def:crs:EPSG::10473')
CoordinateReferenceSystem::fromSRID(Geocentric::EPSG_BBT2000)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10473')


BDA2000
-------
| Extent: Bermuda - onshore and offshore
Expand Down
14 changes: 14 additions & 0 deletions docs/reflection/coordinatereferencesystem/geographic2d.txt
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,20 @@ Azores Oriental 1995

Replaces 1948 system (CRS code 4184). Replaced by PTRA08 (CRS code 5013).

BBT2000
-------
| Extent: Austria and Italy - on or related to the Brenner Base Tunnel rail route from Innsbruck to Fortezza (Franzensfeste)

.. code-block:: php

Geographic2D::fromSRID(Geographic2D::EPSG_BBT2000)
Geographic2D::fromSRID('urn:ogc:def:crs:EPSG::10475')
Geographic::fromSRID(Geographic2D::EPSG_BBT2000)
Geographic::fromSRID('urn:ogc:def:crs:EPSG::10475')
CoordinateReferenceSystem::fromSRID(Geographic2D::EPSG_BBT2000)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10475')


BD50
----
| Extent: Belgium - onshore
Expand Down
Loading

0 comments on commit 6d8d872

Please sign in to comment.