@Override public String toString() { StringBuilder sb = new StringBuilder( super.toString() ); sb.append( "\n - Ellipsoid: " ).append( ellipsoid ); sb.append( "\n - Primemeridian: " ).append( primeMeridian ); if ( this.toWGS84 != null ) { sb.append( "\n - wgs84-conversion-info: " ).append( toWGS84 ); } return sb.toString(); }
@Override public boolean equals( Object other ) { if ( other instanceof GeodeticDatumRef ) { other = ( (GeodeticDatumRef) other ).getReferencedObject(); } if ( other != null && other instanceof GeodeticDatum ) { GeodeticDatum that = (GeodeticDatum) other; return this.getPrimeMeridian().equals( that.getPrimeMeridian() ) && this.getEllipsoid().equals( that.getEllipsoid() ) // && ( ( this.getWGS84Conversion() == null ) ? that.getWGS84Conversion() == null // : this.getWGS84Conversion().equals( // that.getWGS84Conversion() ) ) && super.equals( that ); } return false; }