/** * Get the parameters as a String * * @return the parameters as a String */ public String paramsToString() { return " tangent " + origin.toString() + " scale: " + Format.d(getScale(), 6); }
/** * Returns true if this represents the same Projection as proj. * * @param proj projection in question * @return true if this represents the same Projection as proj. */ public boolean equals(Object proj) { if (!(proj instanceof Stereographic)) { return false; } Stereographic oo = (Stereographic) proj; return ((this.getScale() == oo.getScale()) && (this.getTangentLat() == oo.getTangentLat()) && (this.getTangentLon() == oo.getTangentLon()) && this.defaultMapArea.equals(oo.defaultMapArea)); }
/** * copy constructor - avoid clone !! */ public ProjectionImpl constructCopy() { return new Stereographic(getTangentLat(), getTangentLon(), getScale(), getFalseEasting(), getFalseNorthing()); }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new Stereographic(getTangentLat(), getTangentLon(), getScale(), getFalseEasting(), getFalseNorthing(), getEarthRadius()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new Stereographic(getTangentLat(), getTangentLon(), getScale(), getFalseEasting(), getFalseNorthing(), getEarthRadius()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new Stereographic(getTangentLat(), getTangentLon(), getScale(), getFalseEasting(), getFalseNorthing(), getEarthRadius()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }