We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
public boolean isEqual(Datum datum) { // false if tranforms are not equal if (getTransformType() != datum.getTransformType()) { return false; } // false if ellipsoids are not (approximately) equal if (ellipsoid.getEquatorRadius() != ellipsoid.getEquatorRadius()) { // <- maybe have a bug here if (Math.abs(ellipsoid.getEccentricitySquared() - datum.ellipsoid.getEccentricitySquared()) > ELLIPSOID_E2_TOLERANCE) return false; } // false if transform parameters are not identical if (getTransformType() == TYPE_3PARAM || getTransformType() == TYPE_7PARAM) { for (int i = 0; i < transform.length; i++) { if (transform[i] != datum.transform[i]) return false; } return true; } else if (getTransformType() == TYPE_GRIDSHIFT) { return grids.equals(datum.grids); } return true; // datums are equal }
ellipsoid.getEquatorRadius() compare with itself, the condition is always false. the condition should be
ellipsoid.getEquatorRadius()
ellipsoid.getEquatorRadius() != datum.ellipsoid.getEquatorRadius()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ellipsoid.getEquatorRadius()
compare with itself, the condition is always false.the condition should be
The text was updated successfully, but these errors were encountered: