Datum transformation method heuristics don't consider the extent of the area covered by a specific method

Description

This results in rather oddball results, for example:

  • for NAD83 the transformations params valid for Hawaii are chosen instead of those valid for continental USA
    * for italian Gauss Boaga the sardinian values are used instead of the mainland ones

Given the same projection accuracy the method that covers the widest area should be chosen.

In the future we may want to allow the use to specify the preferred method based on the target area to be reprojected

Here is an example for the first case (NAD83 to WGS84), the list of candidate methods is extracted via the following query:

coord_op_code, coord_op_name, coord_op_accuracy, coord_op_method_name, area_name
(epsg_coordoperation join epsg_area on epsg_coordoperation.area_of_use_code=epsg_area.area_code)
join epsg_coordoperationmethod on epsg_coordoperation.coord_op_method_code = epsg_coordoperationmethod.coord_op_method_code
SOURCE_CRS_CODE = 4269 AND TARGET_CRS_CODE = 4326
ORDER ABS(epsg_coordoperation.DEPRECATED), COORD_OP_ACCURACY

and the result is:

15839 NAD83 to WGS 84 (57) 1 NADCON USA - Pennsylvania
1748 NAD83 to WGS 84 (52) 1 NADCON USA - Illinois
1749 NAD83 to WGS 84 (53) 1 NADCON USA - New Jersey
1750 NAD83 to WGS 84 (54) 1 NADCON USA - California - south of 36.5°N
15835 NAD83 to WGS 84 (55) 1 NADCON USA - North Carolina
15837 NAD83 to WGS 84 (56) 1 NADCON USA - South Carolina
1696 NAD83 to WGS 84 (6) 1 NTv2 Canada - Quebec
1697 NAD83 to WGS 84 (7) 1 NTv2 Canada - Saskatchewan
1702 NAD83 to WGS 84 (8) 1 NTv2 Canada - Alberta
1708 NAD83 to WGS 84 (12) 1 NADCON USA - Arkansas
1709 NAD83 to WGS 84 (13) 1 NADCON USA - Iowa
1710 NAD83 to WGS 84 (14) 1 NADCON USA - Minnesota
1711 NAD83 to WGS 84 (15) 1 NADCON USA - Missouri
1712 NAD83 to WGS 84 (16) 1 NADCON USA - Colorado
1713 NAD83 to WGS 84 (17) 1 NADCON USA - Georgia
1714 NAD83 to WGS 84 (18) 1 NADCON USA - Florida
1715 NAD83 to WGS 84 (19) 1 NADCON USA - Idaho and Montana - east of 113°W
1716 NAD83 to WGS 84 (20) 1 NADCON USA - Idaho and Montana - west of 113°W
1717 NAD83 to WGS 84 (21) 1 NADCON USA - Alabama
1718 NAD83 to WGS 84 (22) 1 NADCON USA - Kentucky
1719 NAD83 to WGS 84 (23) 1 NADCON USA - Louisiana
1720 NAD83 to WGS 84 (24) 1 NADCON USA - Delaware and Maryland
1721 NAD83 to WGS 84 (25) 1 NADCON USA - Maine
1722 NAD83 to WGS 84 (26) 1 NADCON USA - Michigan
1723 NAD83 to WGS 84 (27) 1 NADCON USA - Mississippi
1724 NAD83 to WGS 84 (28) 1 NADCON USA - Nebraska
1725 NAD83 to WGS 84 (29) 1 NADCON USA - New England - south (CT, MA, NH, RI, VT)
1726 NAD83 to WGS 84 (30) 1 NADCON USA - New Mexico
1727 NAD83 to WGS 84 (31) 1 NADCON USA - New York
1728 NAD83 to WGS 84 (32) 1 NADCON USA - Arizona
1729 NAD83 to WGS 84 (33) 1 NADCON USA - North Dakota
1730 NAD83 to WGS 84 (34) 1 NADCON USA - Oklahoma
1731 NAD83 to WGS 84 (35) 1 NADCON Caribbean - Puerto Rico and US Virgin Islands
1732 NAD83 to WGS 84 (36) 1 NADCON USA - South Dakota
1733 NAD83 to WGS 84 (37) 1 NADCON USA - Tennessee
1734 NAD83 to WGS 84 (38) 1 NADCON USA - Texas east of 100°W
1735 NAD83 to WGS 84 (39) 1 NADCON USA - Texas west of 100°W
1736 NAD83 to WGS 84 (40) 1 NADCON USA - Virginia
1737 NAD83 to WGS 84 (41) 1 NADCON USA - Oregon and Washington
1738 NAD83 to WGS 84 (42) 1 NADCON USA - Wisconsin
1739 NAD83 to WGS 84 (43) 1 NADCON USA - California - north of 36.5°N
1740 NAD83 to WGS 84 (44) 1 NADCON USA - Wyoming
1741 NAD83 to WGS 84 (45) 1 NADCON USA - Hawaii
1742 NAD83 to WGS 84 (46) 1 NADCON USA - Indiana
1743 NAD83 to WGS 84 (47) 1 NADCON USA - Kansas
1744 NAD83 to WGS 84 (48) 1 NADCON USA - Nevada
1745 NAD83 to WGS 84 (49) 1 NADCON USA - Ohio
1746 NAD83 to WGS 84 (50) 1 NADCON USA - Utah
1747 NAD83 to WGS 84 (51) 1 NADCON USA - West Virginia
1252 NAD83 to WGS 84 (3) 4 Geocentric translations (geog2D domain) USA - Hawaii
1188 NAD83 to WGS 84 (1) 4 Geocentric translations (geog2D domain) North America - Canada and USA (conus, AK mainland)
1251 NAD83 to WGS 84 (2) 8 Geocentric translations (geog2D domain) USA - Alaska - Aleutian Islands
1308 NAD83 to WGS 84 (4) <> Coordinate Frame Rotation (geog2D domain) USA - conus
1515 NAD83 to WGS 84 (5) <> Coordinate Frame Rotation (geog2D domain) USA - conus

All of the first methods are not supported at the moment, the trouble at the moment is that with the current order we end up choosing the Hawaii params instead of mainland USA

Environment

None

Activity

Show:
codehaus
April 10, 2015, 3:12 PM

CodeHaus Comment From: aaime - Time: Sun, 3 Apr 2011 08:47:39 -0500
---------------------
Fixed on 2.7.x and trunk by adding an estimation of the area extent in the priority used to choose which operation method to use

codehaus
April 10, 2015, 3:12 PM

CodeHaus Comment From: aaime - Time: Sat, 28 May 2011 04:19:49 -0500
---------------------
Mass closing all issues that have been in "resolved" state for more than one month without further comments

Fixed

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Fix versions

Affects versions

Priority

Medium
Configure