Skip to content
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

VN2000 Error Exception in thread "main" java.lang.IllegalStateException: Latitude is out of range: 9738.514891355962 #103

Open
longtran84 opened this issue Jul 1, 2023 · 0 comments
Labels

Comments

@longtran84
Copy link

    CRSFactory crsFactory = new CRSFactory();
    CoordinateReferenceSystem WGS84 = crsFactory.createFromParameters("WGS84",
            "+proj=longlat +datum=WGS84 +no_defs");
    CoordinateReferenceSystem UTM = crsFactory.createFromParameters("VN-2000",
            "+proj=longlat +ellps=WGS84 +towgs84=-191.90441429,-39.30318279,-111.45032835,0.00928836,-0.01975479,0.00427372,0.252906278 +no_defs");
    CoordinateTransformFactory ctFactory = new CoordinateTransformFactory();
    CoordinateTransform wgsToUtm = ctFactory.createTransform(WGS84, UTM);

// result is an output parameter to transform()
ProjCoordinate result = new ProjCoordinate();
wgsToUtm.transform(new ProjCoordinate(13, 13), result);
System.err.println(result);

@pomadchin pomadchin added the bug label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants