Skip to content

Commit 95948fc

Browse files
committed
proj.db: Alter GDA94 transform pipeline accuracies
Prefer to use the conformal+distortion grid to transform between GDA94 and GDA2020, rather than the conformal-only grid or the 7-param transform. Additionally alter the GDA94 -> WGS84 transformations to go via GDA2020 and also use the conformal+distortion grid
1 parent 9e81321 commit 95948fc

File tree

3 files changed

+58
-6
lines changed

3 files changed

+58
-6
lines changed

data/sql/koordinates_overrides.sql

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
-- This file is hand generated
2+
--
3+
-- When transforming from GDA2020 to WGS84,
4+
-- use the null transform rather than grid or 7-param transforms
5+
UPDATE
6+
helmert_transformation_table
7+
SET
8+
accuracy = 0.0299
9+
WHERE
10+
auth_name = 'EPSG'
11+
AND code = 8450;
12+
13+
--
14+
-- When transforming from GDA94 to GDA2020,
15+
-- use the distortion+conformal grid in preference to the conformal-only grid.
16+
UPDATE
17+
grid_transformation
18+
SET
19+
accuracy = 0.0099
20+
WHERE
21+
auth_name = 'EPSG'
22+
AND code = 8447;
23+
24+
/*
25+
These three transforms from GDA94 to WGS84 are defined:
26+
* EPSG:9688, GDA94 to WGS 84 (2), 3.0 m, Australia including Lord Howe Island, Macquarie Island, Ashmore and Cartier Islands, Christmas Island, Cocos (Keeling) Islands, Norfolk Island. All onshore and offshore.
27+
* EPSG:1150, GDA94 to WGS 84 (1), 3.0 m, Australia including Lord Howe Island, Macquarie Island, Ashmore and Cartier Islands, Christmas Island, Cocos (Keeling) Islands, Norfolk Island. All onshore and offshore.
28+
* DERIVED_FROM(EPSG):9689, GDA94 to WGS 84 (3), 3.0 m, Australia - Australian Capital Territory; New South Wales; Northern Territory; Queensland; South Australia; Tasmania; Western Australia; Victoria.
29+
30+
Of these, the last one is what we want: When projecting from GDA94 to WGS84, assume WGS84 equivalence with GDA2020.
31+
Then prioritise the transformation using the conformal+distortion grid followed by a null transform.
32+
33+
So we prioritise that transform by improving its accuracy slightly:
34+
*/
35+
UPDATE
36+
grid_transformation
37+
SET
38+
accuracy = 2.99
39+
WHERE
40+
auth_name = 'EPSG'
41+
AND code = 9689;
42+
43+
-- and this one makes no sense; GDA94 to WGS84 shouldn't be a null transform.
44+
-- setting the accuracy to null prevents PROJ from choosing this transform over another one.
45+
update
46+
helmert_transformation_table
47+
set
48+
accuracy = NULL
49+
where
50+
auth_name = 'EPSG'
51+
and code = 1150;

data/sql_filelist.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ list(APPEND SQL_FILES
6363
"${SQL_DIR}/wgs84_realizations_concatenated_operations.sql"
6464
"${SQL_DIR}/customizations.sql"
6565
"${SQL_DIR}/nkg_post_customizations.sql"
66+
"${SQL_DIR}/koordinates_overrides.sql"
6667
)
6768

6869
if (PROJ_DB_EXTRA_VALIDATION)

test/cli/test_projinfo.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,13 +1403,13 @@ tests:
14031403
unknown id, AGD66 to WGS 84 (22) + WGS 84 to WGS 84 (G1762), 6 m, Papua New Guinea - Papuan fold and thrust belt.
14041404
unknown id, AGD66 to WGS 84 (23) + WGS 84 to WGS 84 (G1762), 6 m, Papua New Guinea - North Fly area (between 5°04'S and 6°36'S and west of 141°32'E).
14051405
unknown id, AGD66 to WGS 84 (12) + WGS 84 to WGS 84 (G1762), 5 m, Australia - Australian Capital Territory.
1406-
unknown id, AGD66 to GDA94 (11) + GDA94 to GDA2020 (2) + Conversion from GDA2020 (geog2D) to GDA2020 (geocentric) + GDA2020 to WGS 84 (G1762) (1) + Conversion from WGS 84 (G1762) (geocentric) to WGS 84 (G1762) (geog2D), 0.75 m, Australia - Australian Capital Territory; New South Wales; Northern Territory; Queensland; South Australia; Tasmania; Western Australia; Victoria., time-dependent operation
1407-
unknown id, AGD66 to GDA94 (12) + GDA94 to GDA2020 (2) + Conversion from GDA2020 (geog2D) to GDA2020 (geocentric) + GDA2020 to WGS 84 (G1762) (1) + Conversion from WGS 84 (G1762) (geocentric) to WGS 84 (G1762) (geog2D), 3.25 m, Australia - Australian Capital Territory; New South Wales; Northern Territory; Queensland; South Australia; Tasmania; Western Australia; Victoria., time-dependent operation
1406+
unknown id, AGD66 to GDA94 (11) + GDA94 to GDA2020 (2) + Conversion from GDA2020 (geog2D) to GDA2020 (geocentric) + GDA2020 to WGS 84 (G1762) (1) + Conversion from WGS 84 (G1762) (geocentric) to WGS 84 (G1762) (geog2D), 0.7099 m, Australia - Australian Capital Territory; New South Wales; Northern Territory; Queensland; South Australia; Tasmania; Western Australia; Victoria., time-dependent operation
1407+
unknown id, AGD66 to GDA94 (12) + GDA94 to GDA2020 (2) + Conversion from GDA2020 (geog2D) to GDA2020 (geocentric) + GDA2020 to WGS 84 (G1762) (1) + Conversion from WGS 84 (G1762) (geocentric) to WGS 84 (G1762) (geog2D), 3.2099 m, Australia - Australian Capital Territory; New South Wales; Northern Territory; Queensland; South Australia; Tasmania; Western Australia; Victoria., time-dependent operation
14081408
unknown id, AGD66 to WGS 84 (17) + WGS 84 to WGS 84 (G1762), 4.9 m, Australia - Australian Capital Territory; New South Wales; Northern Territory; Queensland; South Australia; Tasmania; Western Australia; Victoria.
1409-
unknown id, AGD66 to GDA94 (9) + GDA94 to GDA2020 (2) + Conversion from GDA2020 (geog2D) to GDA2020 (geocentric) + GDA2020 to WGS 84 (G1762) (1) + Conversion from WGS 84 (G1762) (geocentric) to WGS 84 (G1762) (geog2D), 1.25 m, Australia - Northern Territory., time-dependent operation
1410-
unknown id, AGD66 to GDA94 (4) + GDA94 to GDA2020 (2) + Conversion from GDA2020 (geog2D) to GDA2020 (geocentric) + GDA2020 to WGS 84 (G1762) (1) + Conversion from WGS 84 (G1762) (geocentric) to WGS 84 (G1762) (geog2D), 1.25 m, Australia - New South Wales and Victoria., time-dependent operation
1411-
unknown id, AGD66 to GDA94 (8) + GDA94 to GDA2020 (2) + Conversion from GDA2020 (geog2D) to GDA2020 (geocentric) + GDA2020 to WGS 84 (G1762) (1) + Conversion from WGS 84 (G1762) (geocentric) to WGS 84 (G1762) (geog2D), 1.25 m, Australia - Tasmania including islands - onshore., time-dependent operation
1412-
unknown id, AGD66 to GDA94 (19) + GDA94 to GDA2020 (2) + Conversion from GDA2020 (geog2D) to GDA2020 (geocentric) + GDA2020 to WGS 84 (G1762) (1) + Conversion from WGS 84 (G1762) (geocentric) to WGS 84 (G1762) (geog2D), 0.75 m, Australia - Australian Capital Territory., time-dependent operation
1409+
unknown id, AGD66 to GDA94 (9) + GDA94 to GDA2020 (2) + Conversion from GDA2020 (geog2D) to GDA2020 (geocentric) + GDA2020 to WGS 84 (G1762) (1) + Conversion from WGS 84 (G1762) (geocentric) to WGS 84 (G1762) (geog2D), 1.2099 m, Australia - Northern Territory., time-dependent operation
1410+
unknown id, AGD66 to GDA94 (4) + GDA94 to GDA2020 (2) + Conversion from GDA2020 (geog2D) to GDA2020 (geocentric) + GDA2020 to WGS 84 (G1762) (1) + Conversion from WGS 84 (G1762) (geocentric) to WGS 84 (G1762) (geog2D), 1.2099 m, Australia - New South Wales and Victoria., time-dependent operation
1411+
unknown id, AGD66 to GDA94 (8) + GDA94 to GDA2020 (2) + Conversion from GDA2020 (geog2D) to GDA2020 (geocentric) + GDA2020 to WGS 84 (G1762) (1) + Conversion from WGS 84 (G1762) (geocentric) to WGS 84 (G1762) (geog2D), 1.2099 m, Australia - Tasmania including islands - onshore., time-dependent operation
1412+
unknown id, AGD66 to GDA94 (19) + GDA94 to GDA2020 (2) + Conversion from GDA2020 (geog2D) to GDA2020 (geocentric) + GDA2020 to WGS 84 (G1762) (1) + Conversion from WGS 84 (G1762) (geocentric) to WGS 84 (G1762) (geog2D), 0.7099 m, Australia - Australian Capital Territory., time-dependent operation
14131413
unknown id, Ballpark geographic offset from AGD66 to WGS 84 (G1762), unknown accuracy, World, has ballpark transformation
14141414
- args: -s EPSG:31467 -t ETRS89 --spatial-test intersects --grid-check none --bbox 8,48,9,49 --summary
14151415
out: |

0 commit comments

Comments
 (0)