-
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
Incorrect input values #96
Comments
Dear @mukoki @Test
public void testFrenchEPSGCodeFrom4326To27582WrongCoordinates() throws Exception {
String csNameSrc = "EPSG:4326"; //Input EPSG
double[] pointSource = new double[]{284173.736, 3594514.828};
String csNameDest = "EPSG:27582"; //Target EPSG lambert 2 etendu france
double[] pointDest = new double[]{584173.736, 2594514.828};
double tolerance = 10E-3;
CoordinateReferenceSystem inputCRS = cRSFactory.getCRS(csNameSrc);
CoordinateReferenceSystem outputCRS = cRSFactory.getCRS(csNameDest);
verbose = true;
double[] result = transform((GeodeticCRS) inputCRS, (GeodeticCRS) outputCRS, pointSource);
->> Must throw an error because the input coordinates are not expressed in LAT/LONG
} Do we need to test if the input coordinates are in the good x, y range for each transform operations ? |
Erwan, Here are some hints about this problem
|
Dear @mukoki |
in this case :
select ST_AsText(ST_Transform(ST_SetSRID(ST_Point(379550.883, 1815125.223), 4326), 2154))
CTS must throw an error like
The projection X supports only latitude and longitude values.
The text was updated successfully, but these errors were encountered: