Field Summary
Fields
protected final double
Meridian distance at the latitudeOfOrigin
.
Fields inherited from class MapProjection
centralMeridian , en0 , en1 , en2 , en3 , en4 , excentricity , excentricitySquared , falseEasting , falseNorthing , globalScale , invertible , isSpherical , latitudeOfOrigin , LOGGER , scaleFactor , semiMajor , semiMinor , SKIP_SANITY_CHECKS
Constructor Summary
Constructors
protected
Constructs a new map projection from the supplied parameters.
Method Summary
All Methods Instance Methods Concrete Methods
boolean
Compares the specified object with this map projection for equality.
Returns the parameter descriptors for this map projection.
protected double
Maximal error (in metres) tolerated for assertions, if enabled.
int
Returns a hash value for this projection.
Methods inherited from class MapProjection
checkReciprocal , getParameterValues , getSourceDimensions , getTargetDimensions , inv_mlfn , inverse , inverseTransformNormalized , mlfn , orthodromicDistance , resetWarnings , transform , transform , transform , transformNormalized
createTransformedShape , derivative , derivative , ensureNonNull , formatWKT , getName , isIdentity , needCopy , normalizeAngle , rollLongitude , transform , transform , transform
Field Details
ml0
protected final double ml0
Meridian distance at the latitudeOfOrigin
. Used for calculations for the ellipsoid.
Method Details
getToleranceForAssertions
protected double getToleranceForAssertions (double longitude,
double latitude)
Maximal error (in metres) tolerated for assertions, if enabled. When assertions are enabled, every direct
projection is followed by an inverse projection, and the result is compared to the original coordinate. If a
distance greater than the tolerance level is found, then an
ProjectionException
will be thrown.
Subclasses should override this method if they need to relax the tolerance level.
Overrides:
getToleranceForAssertions
in class MapProjection
Parameters:
longitude
- The longitude in decimal degrees.
latitude
- The latitude in decimal degrees.
Returns:
The tolerance level for assertions, in meters.
hashCode
public int hashCode ()
Returns a hash value for this projection.
Overrides:
hashCode
in class MapProjection
equals
public boolean equals (Object object)
Compares the specified object with this map projection for equality.
Overrides:
equals
in class MapProjection
Parameters:
object
- The object to compare with this transform.
Returns:
true
if the given object is a transform of the same class and if, given identical source
position, the transformed position would be the equals.