/** * Check for equality with the Object in question * * @param proj object to check * @return true if they are equal */ @Override public boolean equals(Object proj) { if (!(proj instanceof LambertConformalConicEllipse)) { return false; } PolyconicProjection oo = (PolyconicProjection) proj; if ((this.getDefaultMapArea() == null) != (oo.defaultMapArea == null)) return false; // common case is that these are null if (this.getDefaultMapArea() != null && !this.defaultMapArea.equals(oo.defaultMapArea)) return false; return ((this.getOriginLatitude() == oo.getOriginLatitude()) && (this.getOriginLongitude() == oo.getOriginLongitude()) && this.ellipsoid.equals(oo.getEarth())); }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new PolyconicProjection(getOriginLatitude(), getOriginLongitude(), getFalseEasting(), getFalseNorthing(), getEarth()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; } }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new PolyconicProjection(getOriginLatitude(), getOriginLongitude(), getFalseEasting(), getFalseNorthing(), getEarth()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; } }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new PolyconicProjection(getOriginLatitude(), getOriginLongitude(), getFalseEasting(), getFalseNorthing(), getEarth()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; } }