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 24, 2024
1 parent 0baa7a2 commit f13449b
Show file tree
Hide file tree
Showing 27 changed files with 300 additions and 90 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

## [5.10.1] - 2024-09-24
### Fixed
- Compatibility with opcache preloading

## [5.10.0] - 2024-08-23
### Added
- Added a new method `isWithinCRSBoundingArea()` on most `Point` objects to check if they lie within the bounds
Expand Down Expand Up @@ -345,8 +349,9 @@ Initial release of this fork (based off of v2.3 of original)
- 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.
- When calculating surface distances, a more accurate mean radius is now used rather than that derived from historical definitions of a nautical mile

[Unreleased]: https://github.com/dvdoug/PHPCoord/compare/v5.10.0..master
[Unreleased]: https://github.com/dvdoug/PHPCoord/compare/v5.10.1..master

[5.10.1]: https://github.com/dvdoug/PHPCoord/compare/v5.10.0..v5.10.1
[5.10.0]: https://github.com/dvdoug/PHPCoord/compare/v5.9.2..v5.10.0
[5.9.2]: https://github.com/dvdoug/PHPCoord/compare/v5.9.1..v5.9.2
[5.9.1]: https://github.com/dvdoug/PHPCoord/compare/v5.9.0..v5.9.1
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 -->6993 different coordinate systems are supported, covering the entire globe. Some common systems supported include:
<!-- numOfCRS -->6996 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
16 changes: 16 additions & 0 deletions docs/reflection/coordinateoperation/coordinateoperationmethods.txt
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,14 @@ Geog3D to Geog2D+GravityRelatedHeight (ITAL2005)
'urn:ogc:def:method:EPSG::1105'


Geog3D to Geog2D+GravityRelatedHeight (NGS bin)
-----------------------------------------------
.. code-block:: php

CoordinateOperationMethods::EPSG_GEOG3D_TO_GEOG2D_PLUS_GRAVITYRELATEDHEIGHT_NGS_BIN
'urn:ogc:def:method:EPSG::1135'


Geog3D to Geog2D+GravityRelatedHeight (NRCan byn)
-------------------------------------------------
.. code-block:: php
Expand Down Expand Up @@ -462,6 +470,14 @@ Geographic3D to GravityRelatedHeight (ITAL2005)
'urn:ogc:def:method:EPSG::1106'


Geographic3D to GravityRelatedHeight (NGS bin)
----------------------------------------------
.. code-block:: php

CoordinateOperationMethods::EPSG_GEOGRAPHIC3D_TO_GRAVITYRELATEDHEIGHT_NGS_BIN
'urn:ogc:def:method:EPSG::1134'


Geographic3D to GravityRelatedHeight (NRCan byn)
------------------------------------------------
.. code-block:: php
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 @@ -355,6 +355,18 @@ EOS21 Grid + ODN height
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::9742')


ETRF2000 + EOMA 1980 height
---------------------------
| Extent: Hungary

.. code-block:: php

Compound::fromSRID(Compound::EPSG_ETRF2000_PLUS_EOMA_1980_HEIGHT)
Compound::fromSRID('urn:ogc:def:crs:EPSG::10659')
CoordinateReferenceSystem::fromSRID(Compound::EPSG_ETRF2000_PLUS_EOMA_1980_HEIGHT)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10659')


ETRF2000-PL + Baltic 1986 height
--------------------------------
| Extent: Poland - onshore
Expand Down Expand Up @@ -2137,6 +2149,18 @@ GWWWA22 Grid + ODN height
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10223')


HD72 / EOV + EOMA 1980 height
-----------------------------
| Extent: Hungary

.. code-block:: php

Compound::fromSRID(Compound::EPSG_HD72_EOV_PLUS_EOMA_1980_HEIGHT)
Compound::fromSRID('urn:ogc:def:crs:EPSG::10660')
CoordinateReferenceSystem::fromSRID(Compound::EPSG_HD72_EOV_PLUS_EOMA_1980_HEIGHT)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10660')


HS2 Survey Grid + HS2-VRF height
--------------------------------
| Extent: UK - HS2 phases 1 and 2a railway corridor from London to Birmingham, Lichfield and Crewe
Expand Down
29 changes: 15 additions & 14 deletions docs/reflection/coordinatereferencesystem/geographic2d.txt
Original file line number Diff line number Diff line change
Expand Up @@ -662,20 +662,6 @@ Bermuda 1957

Replaced by BDA2000 (CRS code 4762).

Bern 1898 (Bern)
----------------
| Extent: Liechtenstein; Switzerland

.. code-block:: php

Geographic2D::fromSRID(Geographic2D::EPSG_BERN_1898_BERN)
Geographic2D::fromSRID('urn:ogc:def:crs:EPSG::4801')
Geographic::fromSRID(Geographic2D::EPSG_BERN_1898_BERN)
Geographic::fromSRID('urn:ogc:def:crs:EPSG::4801')
CoordinateReferenceSystem::fromSRID(Geographic2D::EPSG_BERN_1898_BERN)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::4801')


Bern 1938
---------
| Extent: Liechtenstein; Switzerland
Expand Down Expand Up @@ -793,6 +779,21 @@ CH1903

Replaced by CH1903+.

CH1903 (Bern)
-------------
| Extent: Liechtenstein; Switzerland

.. code-block:: php

Geographic2D::fromSRID(Geographic2D::EPSG_CH1903_BERN)
Geographic2D::fromSRID('urn:ogc:def:crs:EPSG::4801')
Geographic::fromSRID(Geographic2D::EPSG_CH1903_BERN)
Geographic::fromSRID('urn:ogc:def:crs:EPSG::4801')
CoordinateReferenceSystem::fromSRID(Geographic2D::EPSG_CH1903_BERN)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::4801')

Replaced by CH1903 (CRS code 4149).

CH1903+
-------
| Extent: Liechtenstein; Switzerland
Expand Down
45 changes: 29 additions & 16 deletions docs/reflection/coordinatereferencesystem/projected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2012,19 +2012,6 @@ Bermuda 1957 / UTM zone 20N

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

Bern 1898 (Bern) / LV03C
------------------------
| Extent: Liechtenstein; Switzerland

.. code-block:: php

Projected::fromSRID(Projected::EPSG_BERN_1898_BERN_LV03C)
Projected::fromSRID('urn:ogc:def:crs:EPSG::21780')
CoordinateReferenceSystem::fromSRID(Projected::EPSG_BERN_1898_BERN_LV03C)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::21780')

In Switzerland, replaced by CH1903 / LV03 (CRS code 21781). For use in Liechtenstein may be implemented through Greenwich based equivalent CRS code 21782.

Bissau / UTM zone 28N
---------------------
| Extent: Guinea-Bissau - onshore
Expand Down Expand Up @@ -2945,6 +2932,19 @@ CGRS93 / Cyprus Local Transverse Mercator
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::6312')


CH1903 (Bern) / LV03C
---------------------
| Extent: Liechtenstein; Switzerland

.. code-block:: php

Projected::fromSRID(Projected::EPSG_CH1903_BERN_LV03C)
Projected::fromSRID('urn:ogc:def:crs:EPSG::21780')
CoordinateReferenceSystem::fromSRID(Projected::EPSG_CH1903_BERN_LV03C)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::21780')

In Switzerland, replaced by CH1903 / LV03 (CRS code 21781). For use in Liechtenstein may be implemented through Greenwich based equivalent CRS code 21782.

CH1903 / LV03
-------------
| Extent: Liechtenstein; Switzerland
Expand Down Expand Up @@ -11236,7 +11236,7 @@ See Gulshan 303 / TM 90 NE (CRS code 3106) for topographic mapping and offshore

Gulshan 303 / TM 90 NE
----------------------
| Extent: Bangladesh, Bangladesh - onshore
| Extent: Bangladesh - onshore, Bangladesh

.. code-block:: php

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

MGI 1901 / Balkans zone 7
-------------------------
| 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
| 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

.. code-block:: php

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

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

.. code-block:: php

Expand Down Expand Up @@ -55496,6 +55496,19 @@ SIRGAS 2000 / Brazil Polyconic

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

SIRGAS 2000 / Porto Alegre TM
-----------------------------
| Extent: Brazil - Porto Alegre municipality

.. code-block:: php

Projected::fromSRID(Projected::EPSG_SIRGAS_2000_PORTO_ALEGRE_TM)
Projected::fromSRID('urn:ogc:def:crs:EPSG::10665')
CoordinateReferenceSystem::fromSRID(Projected::EPSG_SIRGAS_2000_PORTO_ALEGRE_TM)
CoordinateReferenceSystem::fromSRID('urn:ogc:def:crs:EPSG::10665')

Replaces the Porto Alegre Gauss-Kruger Cartographic Reference System of the Brazilian General Chart Commission (SCR-CCG) from 2013-06-20.

SIRGAS 2000 / UTM zone 11N
--------------------------
| Extent: Latin America between 120°W and 114°W, northern hemisphere
Expand Down
2 changes: 2 additions & 0 deletions docs/reflection/datum/datum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1931,6 +1931,8 @@ Deutsche Bahn Reference System

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

In DB_REF2016 only the vertical CRS component is updated, the geodetic CRS component of DB_REF is unchanged.

Deutsches Hauptdreiecksnetz
---------------------------
| Type: Geodetic
Expand Down
2 changes: 1 addition & 1 deletion docs/reflection/numOfCRS.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.. |numOfCRS| replace:: 6993
.. |numOfCRS| replace:: 6996
2 changes: 1 addition & 1 deletion src/CoordinateOperation/CRSTransformationsEurope.php
Original file line number Diff line number Diff line change
Expand Up @@ -3359,7 +3359,7 @@ class CRSTransformationsEurope
],
[
'operation' => 'urn:ogc:def:coordinateOperation:EPSG::1765',
'name' => 'Bern 1898 (Bern) to CH1903 (1)',
'name' => 'CH1903 (Bern) to CH1903 (1)',
'source_crs' => 'urn:ogc:def:crs:EPSG::4801',
'target_crs' => 'urn:ogc:def:crs:EPSG::4149',
'accuracy' => 0.0,
Expand Down
7 changes: 7 additions & 0 deletions src/CoordinateOperation/CRSTransformationsSouthAmerica.php
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,13 @@ class CRSTransformationsSouthAmerica
'target_crs' => 'urn:ogc:def:crs:EPSG::4326',
'accuracy' => 1.0,
],
[
'operation' => 'urn:ogc:def:coordinateOperation:EPSG::10664',
'name' => 'Porto Alegre Transverse Mercator',
'source_crs' => 'urn:ogc:def:crs:EPSG::4674',
'target_crs' => 'urn:ogc:def:crs:EPSG::10665',
'accuracy' => 0,
],
[
'operation' => 'urn:ogc:def:coordinateOperation:EPSG::15894',
'name' => 'SIRGAS 2000 to WGS 84 (1)',
Expand Down
35 changes: 35 additions & 0 deletions src/CoordinateOperation/CoordinateOperationMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ class CoordinateOperationMethods
*/
public const EPSG_GEOG3D_TO_GEOG2D_PLUS_GRAVITYRELATEDHEIGHT_ITAL2005 = 'urn:ogc:def:method:EPSG::1105';

/**
* Geog3D to Geog2D+GravityRelatedHeight (NGS bin).
*/
public const EPSG_GEOG3D_TO_GEOG2D_PLUS_GRAVITYRELATEDHEIGHT_NGS_BIN = 'urn:ogc:def:method:EPSG::1135';

/**
* Geog3D to Geog2D+GravityRelatedHeight (NRCan byn).
*/
Expand Down Expand Up @@ -301,6 +306,11 @@ class CoordinateOperationMethods
*/
public const EPSG_GEOGRAPHIC3D_TO_GRAVITYRELATEDHEIGHT_ITAL2005 = 'urn:ogc:def:method:EPSG::1106';

/**
* Geographic3D to GravityRelatedHeight (NGS bin).
*/
public const EPSG_GEOGRAPHIC3D_TO_GRAVITYRELATEDHEIGHT_NGS_BIN = 'urn:ogc:def:method:EPSG::1134';

/**
* Geographic3D to GravityRelatedHeight (NRCan byn).
*/
Expand Down Expand Up @@ -2420,6 +2430,29 @@ class CoordinateOperationMethods
],
'help' => '',
],
'urn:ogc:def:method:EPSG::1134' => [
'name' => 'Geographic3D to GravityRelatedHeight (NGS bin)',
'reversible' => false,
'paramData' => [
'geoidHeightCorrectionModelFile' => [
'reverses' => false,
],
],
'help' => '',
],
'urn:ogc:def:method:EPSG::1135' => [
'name' => 'Geog3D to Geog2D+GravityRelatedHeight (NGS bin)',
'reversible' => true,
'paramData' => [
'geoidHeightCorrectionModelFile' => [
'reverses' => true,
],
'EPSGCodeForInterpolationCRS' => [
'reverses' => false,
],
],
'help' => '',
],
'urn:ogc:def:method:EPSG::9601' => [
'name' => 'Longitude rotation',
'reversible' => true,
Expand Down Expand Up @@ -4621,6 +4654,8 @@ class CoordinateOperationMethods
self::EPSG_GEOG3D_TO_GEOG2D_PLUS_GRAVITYRELATEDHEIGHT_GTX => 'geographic3DTo2DPlusGravityHeightFromGrid',
self::EPSG_GEOGRAPHIC3D_TO_GRAVITYRELATEDHEIGHT_GTX => 'geographic3DToGravityHeightFromGrid',
self::EPSG_VERTICAL_OFFSET_BY_GRID_INTERPOLATION_GTX => 'offsetFromGrid',
self::EPSG_GEOGRAPHIC3D_TO_GRAVITYRELATEDHEIGHT_NGS_BIN => 'geographic3DToGravityHeightFromGrid',
self::EPSG_GEOG3D_TO_GEOG2D_PLUS_GRAVITYRELATEDHEIGHT_NGS_BIN => 'geographic3DTo2DPlusGravityHeightFromGrid',
self::EPSG_GEOG3D_TO_GEOG2D_PLUS_GRAVITYRELATEDHEIGHT_IGN2009 => 'geographic3DTo2DPlusGravityHeightFromGrid',
self::EPSG_GEOGRAPHIC3D_TO_GRAVITYRELATEDHEIGHT_IGN2009 => 'geographic3DToGravityHeightFromGrid',
self::EPSG_GEOG3D_TO_GEOG2D_PLUS_GRAVITYRELATEDHEIGHT_EGM2008 => 'geographic3DTo2DPlusGravityHeightFromGrid',
Expand Down
Loading

0 comments on commit f13449b

Please sign in to comment.