Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.0, 2.2.M0
-
Component/s: referencing
-
Labels:None
-
Environment:UDIG 1.0.4
Description
From email:
I have a problem trying to select one of the coordinate systems that we work with though. The "NZGD49 / New Zealand Map Grid (EPSG:27200)" won't work when I select it. If I double click it in the CS dialog the dialog closes but the map CS doesn't change. If I select it and then click "Apply" it doesn't complain, but when I click OK the OK button disables and the dialog remains. I then have to click Cancel to return to the map (selecting another CS doesn't enable the OK button).
Also, when I select the "Custom CRS" tab the details remain the same as the previous CS, rather than changing like the others do.
Comments:
- it really must be a problem with the WKT
27200=PROJCS["NZGD49 / New Zealand Map Grid",
GEOGCS["NZGD49",
DATUM["New_Zealand_Geodetic_Datum_1949",
SPHEROID["International 1924",6378388,297,AUTHORITY["EPSG","7022"]],
TOWGS84[59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993],
AUTHORITY["EPSG","6272"]],
PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],
UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4272"]],
PROJECTION["New_Zealand_Map_Grid"],
PARAMETER["latitude_of_origin",-41],
PARAMETER["central_meridian",173],
PARAMETER["false_easting",2510000],
PARAMETER["false_northing",6023150],
UNIT["metre",1,AUTHORITY["EPSG","9001"]],
AUTHORITY["EPSG","27200"]]
The "New_Zealand_Map_Grid" method name suggests that this method requires a grid, probably defined in some extenal files. Unfortunatly, I do not have any information on such grid (I had a quick look in EPSG database version 6.7, which sometime contains links toward such grids. But I didn't found any such links for this projection).
Supporting this method in Geotools would requires some volunter work:
* Get information about "New_Zealand_Map_Grid" from the New Zeland mapping agency.
* If some grids are required, download the grids.
* Write a new org.opengis.referencing.operation.MathTransform implementation for this projection.
Note that Rueben's work on NADCON transforms may be used as a starting point, since it also uses a grid. Actually, we should probably try to make the NADCON transform more general in order to accept grids from other area than North America. New Zeland is an example. New Caledonia is an other example where this kind of grid is in use.