Datum transformation method heuristics don't consider the extent of the area
covered by a specific method
---------------------------------------------------------------------------------------------------------
Key: GEOT-3497
URL: http://jira.codehaus.org/browse/GEOT-3497
Project: GeoTools
Issue Type: Bug
Components: core referencing
Affects Versions: 2.7.0
Reporter: Andrea Aime
Assignee: Andrea Aime
Fix For: 2.7.1
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:
{code:sql}
SELECT coord_op_code, coord_op_name, coord_op_accuracy, coord_op_method_name,
area_name
FROM (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
WHERE SOURCE_CRS_CODE = 4269 AND TARGET_CRS_CODE = 4326
ORDER BY ABS(epsg_coordoperation.DEPRECATED), COORD_OP_ACCURACY,
(AREA_NORTH_BOUND_LAT - AREA_SOUTH_BOUND_LAT) *
(CASE WHEN AREA_EAST_BOUND_LON > AREA_WEST_BOUND_LON
THEN (AREA_EAST_BOUND_LON - AREA_WEST_BOUND_LON)
ELSE (360 - AREA_WEST_BOUND_LON - AREA_EAST_BOUND_LON) END) DESC
{code}
and the result is:
{code}
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) <null> Coordinate Frame Rotation (geog2D
domain) USA - conus
1515 NAD83 to WGS 84 (5) <null> Coordinate Frame Rotation (geog2D
domain) USA - conus
{code}
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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel