-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OSGB36 NTv2 grid #127
Comments
Related to dbeaver/dbeaver#8553 Unit test @Test
void testEPSGCodeFrom4326To2232() throws Exception {
String csNameSrc = "EPSG:4326"; //Input EPSG
double[] pointSource = new double[]{-105,40};
String csNameDest = "EPSG:2232"; //Target EPSG
double[] pointDest = new double[]{3140089.069 , 1789525.0783};
double tolerance = 0.001;
CoordinateReferenceSystem inputCRS = cRSFactory.getCRS(csNameSrc);
CoordinateReferenceSystem outputCRS = cRSFactory.getCRS(csNameDest);
verbose = true;
double[] result = transform((GeodeticCRS) inputCRS, (GeodeticCRS) outputCRS, pointSource);
assertTrue(checkEquals2D("EPSG:4326 to EPSG:2232", result, pointDest, tolerance));
} |
As @mukoki already suggest we can reuse the files provided by proj lib NADCON transformations use two grid files, one for a latitude shift and one for a longitude shift, that end in .las and .los extensions. NADCON 5 transformations use at least two files, for GridLat and GridLon, and also may optionally use a third file, for GridHeight. |
This should not be very different from the NTv2 case. There is still some work to do : get the format specification, write the parser, implement a new GridBasedTransformation, tests... Not easy to find the time, but not too much challenging from a technical point of view. |
Thanks a lot. I'll add it to the 1.7 road map |
See this discussion : #125
Thanks a lot to @mukoki
The text was updated successfully, but these errors were encountered: