@Override public boolean equals( Object other ) { if ( other != null && other instanceof Projection ) { final Projection that = (Projection) other; return super.equals( that ) && this.units.equals( that.units ) && Math.abs( ( this.projectionLatitude - that.projectionLatitude ) ) < EPS11 && Math.abs( ( this.projectionLongitude - that.projectionLongitude ) ) < EPS11 && Math.abs( ( this.falseNorthing - that.falseNorthing ) ) < EPS11 && Math.abs( ( this.falseEasting - that.falseEasting ) ) < EPS11 && Math.abs( ( this.scale - that.scale ) ) < EPS11 && ( this.conformal == that.conformal ) && ( this.equalArea == that.equalArea ); } return false; }
@Override public boolean equals( Object other ) { if ( other instanceof PrimeMeridianRef ) { other = ( (PrimeMeridianRef) other ).getReferencedObject(); } if ( other != null && other instanceof PrimeMeridian ) { PrimeMeridian that = (PrimeMeridian) other; return ( Math.abs( this.longitude - that.longitude ) < EPS11 ) && ( ( this.units != null ) ? this.units.equals( that.units ) : ( that.units == null ) ) && super.equals( that ); } return false; }
/** * @param other * another ellipsoid * @return true if the other ellipsoid != null and its units, semi-major-axis and eccentricity are the same. */ @Override public boolean equals( Object other ) { if ( other instanceof EllipsoidRef ) { other = ( (EllipsoidRef) other ).getReferencedObject(); } if ( other != null && other instanceof Ellipsoid ) { final Ellipsoid that = (Ellipsoid) other; return this.units.equals( that.units ) && ( Math.abs( this.semiMajorAxis - that.semiMajorAxis ) < EPS11 ) && ( Math.abs( this.eccentricity - that.eccentricity ) < EPS11 ) && super.equals( that ); } return false; }
@Override public boolean equals( Object other ) { if ( other != null && other instanceof Transformation ) { final Transformation that = (Transformation) other; return this.getImplementationName().equals( that.getImplementationName() ) && super.equals( that ) && isIdentity() == that.isIdentity() && isInverseTransform() == that.isInverseTransform(); } return false; }
@Override public boolean equals( Object other ) { if ( other instanceof CRSRef ) { other = ( (CRSRef) other ).getReferencedObject(); } if ( other != null && other instanceof ICRS ) { final ICRS that = (CRS) other; return that.getType() == this.getType() && that.getDimension() == this.getDimension() && matchAxis( that.getAxis() ) && super.equals( that ) && that.getDatum().equals( this.getDatum() ); } return false; }