From c2e6cb19c608e8d61d50db5d716bc24ca2a69260 Mon Sep 17 00:00:00 2001 From: jtejido Date: Mon, 14 May 2018 23:14:55 +0800 Subject: [PATCH] Fixed OSGRB1936 and TM75 Datum. --- src/Geodesy/Datum/ATS77.php | 33 ------------------------- src/Geodesy/Datum/Anguilla1957.php | 33 ------------------------- src/Geodesy/Datum/CorregoAlegre1961.php | 33 ------------------------- src/Geodesy/Datum/NAD2776.php | 33 ------------------------- src/Geodesy/Datum/NAD27CGQ77.php | 33 ------------------------- src/Geodesy/Datum/OSGB1936.php | 19 ++++++++------ src/Geodesy/Datum/PD83.php | 33 ------------------------- src/Geodesy/Datum/RD83.php | 33 ------------------------- src/Geodesy/Datum/StGeorgeIsland.php | 33 ------------------------- src/Geodesy/Datum/StLawrenceIsland.php | 33 ------------------------- src/Geodesy/Datum/StPaulIsland.php | 33 ------------------------- src/Geodesy/Datum/TM75.php | 17 +++++++------ 12 files changed, 21 insertions(+), 345 deletions(-) delete mode 100644 src/Geodesy/Datum/ATS77.php delete mode 100644 src/Geodesy/Datum/Anguilla1957.php delete mode 100644 src/Geodesy/Datum/CorregoAlegre1961.php delete mode 100644 src/Geodesy/Datum/NAD2776.php delete mode 100644 src/Geodesy/Datum/NAD27CGQ77.php delete mode 100644 src/Geodesy/Datum/PD83.php delete mode 100644 src/Geodesy/Datum/RD83.php delete mode 100644 src/Geodesy/Datum/StGeorgeIsland.php delete mode 100644 src/Geodesy/Datum/StLawrenceIsland.php delete mode 100644 src/Geodesy/Datum/StPaulIsland.php diff --git a/src/Geodesy/Datum/ATS77.php b/src/Geodesy/Datum/ATS77.php deleted file mode 100644 index 3b621f8..0000000 --- a/src/Geodesy/Datum/ATS77.php +++ /dev/null @@ -1,33 +0,0 @@ - "Average Terrestrial System 1977", - 'CRS' => 4122, - 'TranslationVectors' => array( - ), - 'RotationalVectors' => array( - 'x' => 0, - 'y' => 0, - 'z' => 0, - ), - 'Scale' => 0, - 'Area' => "Canada - Maritime Provinces", - 'Remarks' => "Parameter file is from ATS77 to NAD83(CSRS) (3) (code 1850) assuming that NAD83(CSRS) is equivalent to WGS 84 within the accuracy of the transformation.", - 'Source' => "OGP", - 'Scope' => "Approximation at the +/- 1m level.", - 'Origin' => "", - ); - - public function __construct() - { - parent::__construct(new AverageTerrestrialSystem1977); - } - -} \ No newline at end of file diff --git a/src/Geodesy/Datum/Anguilla1957.php b/src/Geodesy/Datum/Anguilla1957.php deleted file mode 100644 index 4bf2e5f..0000000 --- a/src/Geodesy/Datum/Anguilla1957.php +++ /dev/null @@ -1,33 +0,0 @@ - "Anguilla 1957", - 'CRS' => 4600, - 'TranslationVectors' => array( - ), - 'RotationalVectors' => array( - 'x' => 0, - 'y' => 0, - 'z' => 0, - ), - 'Scale' => 0, - 'Area' => "Anguilla - onshore", - 'Remarks' => "", - 'Source' => "Ordnance Survey of Great Britain", - 'Scope' => "?", - 'Origin' => "Fundamental point: station A4, Police.", - ); - - public function __construct() - { - parent::__construct(new Clarke1880RGS); - } - -} \ No newline at end of file diff --git a/src/Geodesy/Datum/CorregoAlegre1961.php b/src/Geodesy/Datum/CorregoAlegre1961.php deleted file mode 100644 index 761e778..0000000 --- a/src/Geodesy/Datum/CorregoAlegre1961.php +++ /dev/null @@ -1,33 +0,0 @@ - "Corrego Alegre 1961", - 'CRS' => 5524, - 'TranslationVectors' => array( - ), - 'RotationalVectors' => array( - 'x' => 0, - 'y' => 0, - 'z' => 0, - ), - 'Scale' => 0, - 'Area' => "Brazil - Corrego Alegre 1961", - 'Remarks' => "Parameters from Corrego Alegre 1961 to SIRGAS 2000 (1) (tfm code 5525) assuming that SIRGAS 2000 and WGS 84 are equal within the accuracy of the transformation.", - 'Source' => "OGP", - 'Scope' => "Accuracy 2m.", - 'Origin' => "Fundamental point: Corrego Alegre. Latitude: 19 degrees 50 minutes 14.91 seconds S, longitude: 48 degrees 57 minutes 41.98 seconds W (of Greenwich).", - ); - - public function __construct() - { - parent::__construct(new International1924); - } - -} \ No newline at end of file diff --git a/src/Geodesy/Datum/NAD2776.php b/src/Geodesy/Datum/NAD2776.php deleted file mode 100644 index c03fa3f..0000000 --- a/src/Geodesy/Datum/NAD2776.php +++ /dev/null @@ -1,33 +0,0 @@ - "North American Datum 1927 (1976)", - 'CRS' => 4608, - 'TranslationVectors' => array( - ), - 'RotationalVectors' => array( - 'x' => 0, - 'y' => 0, - 'z' => 0, - ), - 'Scale' => 0, - 'Area' => "Canada - Ontario", - 'Remarks' => "Parameter file is from NAD27(76) to NAD83 (1) (code 1463) assuming that NAD83 is equivalent to WGS 84 within the accuracy of the transformation.", - 'Source' => "OGP", - 'Scope' => "Approximation at the +/- 1m level.", - 'Origin' => "Fundamental point: Meade minutes s Ranch. Latitude: 39 degrees 13 minutes 26.686 seconds N, longitude: 98 degrees 32 minutes 30.506 seconds W (of Greenwich).", - ); - - public function __construct() - { - parent::__construct(new Clarke1866); - } - -} \ No newline at end of file diff --git a/src/Geodesy/Datum/NAD27CGQ77.php b/src/Geodesy/Datum/NAD27CGQ77.php deleted file mode 100644 index eb26c00..0000000 --- a/src/Geodesy/Datum/NAD27CGQ77.php +++ /dev/null @@ -1,33 +0,0 @@ - "North American Datum 1927 (CGQ77)", - 'CRS' => 4609, - 'TranslationVectors' => array( - ), - 'RotationalVectors' => array( - 'x' => 0, - 'y' => 0, - 'z' => 0, - ), - 'Scale' => 0, - 'Area' => "Canada - Quebec", - 'Remarks' => "Parameter file is from NAD27(CGQ77) to NAD83(CSRS) (1) (code 1845) assuming that NAD83(CSRS98) is equivalent to WGS 84 within the accuracy of the transformation.", - 'Source' => "OGP", - 'Scope' => "Approximation at the +/- 1m level.", - 'Origin' => "Fundamental point: Meade minutes s Ranch. Latitude: 39 degrees 13 minutes 26.686 seconds N, longitude: 98 degrees 32 minutes 30.506 seconds W (of Greenwich).", - ); - - public function __construct() - { - parent::__construct(new Clarke1866); - } - -} \ No newline at end of file diff --git a/src/Geodesy/Datum/OSGB1936.php b/src/Geodesy/Datum/OSGB1936.php index 9ccc944..e485fd2 100644 --- a/src/Geodesy/Datum/OSGB1936.php +++ b/src/Geodesy/Datum/OSGB1936.php @@ -10,14 +10,17 @@ class OSGB1936 extends BaseDatum implements DatumInterface CONST DATUM = array ( 'Name' => "OSGB 1936", 'CRS' => 4277, - 'TranslationVectors' => array( - ), - 'RotationalVectors' => array( - 'x' => 0, - 'y' => 0, - 'z' => 0, - ), - 'Scale' => 0, + 'TranslationVectors' => array( + 'x' => -446.448, + 'y' => 125.157, + 'z' => -542.060, + ), + 'RotationalVectors' => array ( + 'x' => -0.150, + 'y' => -0.247, + 'z' => -0.842, + ), + 'Scale' => 20.489, 'Area' => "UK - Britain and UKCS 49?46'N to 61?01'N, 7?33'W to 3?33'E", 'Remarks' => "Parameter values taken from OSGB 1936 to ETRS89 (1) (tfm code 5338) assuming that ETRS89 is coincident with WGS 84 within the accuracy of the tfm. Within accuracy of the tfm equivalent to OSGB 1936 / British National Grid to WGS 84 (2) (tfm code 15956).", 'Source' => "OGP", diff --git a/src/Geodesy/Datum/PD83.php b/src/Geodesy/Datum/PD83.php deleted file mode 100644 index 70a52bd..0000000 --- a/src/Geodesy/Datum/PD83.php +++ /dev/null @@ -1,33 +0,0 @@ - "Potsdam Datum/83", - 'CRS' => 4746, - 'TranslationVectors' => array( - ), - 'RotationalVectors' => array( - 'x' => 0, - 'y' => 0, - 'z' => 0, - ), - 'Scale' => 0, - 'Area' => "Germany - Thuringen", - 'Remarks' => "These parameter values are taken from DHDN to ETRS89 (8) (code 15948) as PD/83 and ETRS89 may be considered equivalent to DHDN and WGS 84 respectively within the accuracy of the transformation.", - 'Source' => "OGP", - 'Scope' => "For applications requiring an accuracy of better than 1 metre.", - 'Origin' => "Fundamental point: Rauenberg. Latitude: 52 degrees 27 minutes 12.021 seconds N, longitude: 13 degrees 22 minutes 04.928 seconds E (of Greenwich). This station was destroyed in 1910 and the station at Potsdam substituted as the fundamental point.", - ); - - public function __construct() - { - parent::__construct(new Bessel1841); - } - -} \ No newline at end of file diff --git a/src/Geodesy/Datum/RD83.php b/src/Geodesy/Datum/RD83.php deleted file mode 100644 index be07718..0000000 --- a/src/Geodesy/Datum/RD83.php +++ /dev/null @@ -1,33 +0,0 @@ - "Rauenberg Datum/83", - 'CRS' => 4745, - 'TranslationVectors' => array( - ), - 'RotationalVectors' => array( - 'x' => 0, - 'y' => 0, - 'z' => 0, - ), - 'Scale' => 0, - 'Area' => "Germany - Saxony", - 'Remarks' => "These parameter values are taken from DHDN to ETRS89 (8) (code 15948) as RD/83 and ETRS89 may be considered equivalent to DHDN and WGS 84 respectively within the accuracy of the transformation.", - 'Source' => "OGP", - 'Scope' => "For applications requiring an accuracy of better than 1 metre.", - 'Origin' => "Fundamental point: Rauenberg. Latitude: 52 degrees 27 minutes 12.021 seconds N, longitude: 13 degrees 22 minutes 04.928 seconds E (of Greenwich). This station was destroyed in 1910 and the station at Potsdam substituted as the fundamental point.", - ); - - public function __construct() - { - parent::__construct(new Bessel1841); - } - -} \ No newline at end of file diff --git a/src/Geodesy/Datum/StGeorgeIsland.php b/src/Geodesy/Datum/StGeorgeIsland.php deleted file mode 100644 index ae2b4f0..0000000 --- a/src/Geodesy/Datum/StGeorgeIsland.php +++ /dev/null @@ -1,33 +0,0 @@ - "St. George Island", - 'CRS' => 4138, - 'TranslationVectors' => array( - ), - 'RotationalVectors' => array( - 'x' => 0, - 'y' => 0, - 'z' => 0, - ), - 'Scale' => 0, - 'Area' => "USA - Alaska - St. George Island", - 'Remarks' => "Parameter files are from St. George Island to NAD83 (1) (code 1457) assuming that NAD83 is equivalent to WGS 84 within the accuracy of the transformation.", - 'Source' => "OGP", - 'Scope' => "Approximation at the +/- 1 to 2m level.", - 'Origin' => "Fundamental point latitude: 56 degrees 36 minutes 11.31 seconds N, longitude: 169 degrees 32 minutes 36.00 seconds W (of Greenwich).", - ); - - public function __construct() - { - parent::__construct(new Clarke1866); - } - -} \ No newline at end of file diff --git a/src/Geodesy/Datum/StLawrenceIsland.php b/src/Geodesy/Datum/StLawrenceIsland.php deleted file mode 100644 index 2282967..0000000 --- a/src/Geodesy/Datum/StLawrenceIsland.php +++ /dev/null @@ -1,33 +0,0 @@ - "St. Lawrence Island", - 'CRS' => 4136, - 'TranslationVectors' => array( - ), - 'RotationalVectors' => array( - 'x' => 0, - 'y' => 0, - 'z' => 0, - ), - 'Scale' => 0, - 'Area' => "USA - Alaska - St. Lawrence Island", - 'Remarks' => "Parameter files are from St. Lawrence Island to NAD83 (1) (code 1455) assuming that NAD83 is equivalent to WGS 84 within the accuracy of the transformation.", - 'Source' => "OGP", - 'Scope' => "Approximation at the +/- 1 to 2m level.", - 'Origin' => "", - ); - - public function __construct() - { - parent::__construct(new Clarke1866); - } - -} \ No newline at end of file diff --git a/src/Geodesy/Datum/StPaulIsland.php b/src/Geodesy/Datum/StPaulIsland.php deleted file mode 100644 index 56ce71d..0000000 --- a/src/Geodesy/Datum/StPaulIsland.php +++ /dev/null @@ -1,33 +0,0 @@ - "St. Paul Island", - 'CRS' => 4137, - 'TranslationVectors' => array( - ), - 'RotationalVectors' => array( - 'x' => 0, - 'y' => 0, - 'z' => 0, - ), - 'Scale' => 0, - 'Area' => "USA - Alaska - St. Paul Island", - 'Remarks' => "Parameter files are from St. Paul Island to NAD83 (1) (code 1456) assuming that NAD83 is equivalent to WGS 84 within the accuracy of the transformation.", - 'Source' => "OGP", - 'Scope' => "Approximation at the +/- 1 to 2m level.", - 'Origin' => "Fundamental point latitude: 57 degrees 07 minutes 16.86 seconds N, longitude: 170 degrees 16 minutes 24.00 seconds W (of Greenwich).", - ); - - public function __construct() - { - parent::__construct(new Clarke1866); - } - -} \ No newline at end of file diff --git a/src/Geodesy/Datum/TM75.php b/src/Geodesy/Datum/TM75.php index dc33b35..19481bf 100644 --- a/src/Geodesy/Datum/TM75.php +++ b/src/Geodesy/Datum/TM75.php @@ -11,13 +11,16 @@ class TM75 extends BaseDatum implements DatumInterface 'Name' => "Geodetic Datum of 1965", 'CRS' => 4300, 'TranslationVectors' => array( - ), - 'RotationalVectors' => array( - 'x' => 0, - 'y' => 0, - 'z' => 0, - ), - 'Scale' => 0, + 'x' => -482.5, + 'y' => 130.6, + 'z' => -564.6, + ), + 'RotationalVectors' => array ( + 'x' => -1.042, + 'y' => -0.214, + 'z' => -0.631, + ), + 'Scale' => -8.15, 'Area' => "Europe - Ireland (Republic and Ulster) - onshore", 'Remarks' => "Parameter values taken from TM75 to ETRS89 (1) (code 1041) assuming that ETRS89 is coincident with WGS 84 within the accuracy of the transformation. Use iteration for reverse transformation WGS 84 to TM75. May be emulated by NTv2 alternative code 6947.", 'Source' => "OGP",