Class AzimuthalProjection
java.lang.Object
org.locationtech.proj4j.proj.Projection
org.locationtech.proj4j.proj.AzimuthalProjection
- All Implemented Interfaces:
Serializable, Cloneable
- Direct Known Subclasses:
EqualAreaAzimuthalProjection, EquidistantAzimuthalProjection, GnomonicAzimuthalProjection, OrthographicAzimuthalProjection, StereographicAzimuthalProjection
The superclass for all azimuthal map projections
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doublestatic final intprivate doubleprotected intstatic final intstatic final intprotected doublestatic final intFields inherited from class Projection
a, alpha, DTR, e, ellipsoid, EPS10, es, falseEasting, falseNorthing, fromMetres, geocentric, lonc, maxLatitude, maxLongitude, minLatitude, minLongitude, name, one_es, projectionLatitude, projectionLatitude1, projectionLatitude2, projectionLongitude, rone_es, RTD, scaleFactor, spherical, totalScale, trueScaleLatitude, unit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRepresents quality between possible outputs ofProjection.project(ProjCoordinate, ProjCoordinate).doubleinthashCode()Hash of those fields considered in Projection equalituy.voidInitialize the projection.booleaninside(double lon, double lat) Returns true if the given lat/long point is visible in this projectionvoidsetMapRadius(double mapRadius) Set the map radius (in degrees).Methods inherited from class Projection
clone, getAlpha, getAxisOrder, getEllipsoid, getEPSGCode, getEquatorRadius, getFalseEasting, getFalseNorthing, getFromMetres, getHeightOfOrbit, getLonC, getMaxLatitude, getMaxLatitudeDegrees, getMaxLongitude, getMaxLongitudeDegrees, getMinLatitude, getMinLatitudeDegrees, getMinLongitude, getMinLongitudeDegrees, getName, getPrimeMeridian, getPROJ4Description, getProjectionLatitude, getProjectionLatitude1, getProjectionLatitude1Degrees, getProjectionLatitude2, getProjectionLatitude2Degrees, getProjectionLatitudeDegrees, getProjectionLongitude, getProjectionLongitudeDegrees, getScaleFactor, getSouthernHemisphere, getTrueScaleLatitude, getTrueScaleLatitudeDegrees, getUnits, hasInverse, inverseProject, inverseProjectRadians, isConformal, isEqualArea, isGeographic, isRectilinear, normalizeLongitude, normalizeLongitudeRadians, parallelsAreParallel, project, project, projectInverse, projectRadians, setAlpha, setAlphaDegrees, setAxisOrder, setEllipsoid, setFalseEasting, setFalseNorthing, setFromMetres, setGamma, setGammaDegrees, setHeightOfOrbit, setLonC, setLonCDegrees, setMaxLatitude, setMaxLongitude, setMaxLongitudeDegrees, setMinLatitude, setMinLongitude, setMinLongitudeDegrees, setName, setNoUoff, setPrimeMeridian, setProjectionLatitude, setProjectionLatitude1, setProjectionLatitude1Degrees, setProjectionLatitude2, setProjectionLatitude2Degrees, setProjectionLatitudeDegrees, setProjectionLongitude, setProjectionLongitudeDegrees, setRadius, setScaleFactor, setSouthernHemisphere, setTrueScaleLatitude, setTrueScaleLatitudeDegrees, setUnits, toString
-
Field Details
-
NORTH_POLE
public static final int NORTH_POLE- See Also:
-
SOUTH_POLE
public static final int SOUTH_POLE- See Also:
-
EQUATOR
public static final int EQUATOR- See Also:
-
OBLIQUE
public static final int OBLIQUE- See Also:
-
mode
protected int mode -
sinphi0
protected double sinphi0 -
cosphi0
protected double cosphi0 -
mapRadius
private double mapRadius
-
-
Constructor Details
-
AzimuthalProjection
public AzimuthalProjection() -
AzimuthalProjection
public AzimuthalProjection(double projectionLatitude, double projectionLongitude)
-
-
Method Details
-
initialize
public void initialize()Description copied from class:ProjectionInitialize the projection. This should be called after setting parameters and before using the projection. This is for performance reasons as initialization may be expensive.- Overrides:
initializein classProjection
-
inside
public boolean inside(double lon, double lat) Description copied from class:ProjectionReturns true if the given lat/long point is visible in this projection- Overrides:
insidein classProjection
-
setMapRadius
public void setMapRadius(double mapRadius) Set the map radius (in degrees). 180 shows a hemisphere, 360 shows the whole globe. -
getMapRadius
public double getMapRadius() -
equals
Description copied from class:ProjectionRepresents quality between possible outputs ofProjection.project(ProjCoordinate, ProjCoordinate). Subclasses of Projection should capture additional state that is used in the project method and delgate to base. Note: The name of the projection is not part of equality.- Overrides:
equalsin classProjection
-
hashCode
public int hashCode()Description copied from class:ProjectionHash of those fields considered in Projection equalituy. Subclasses that override equality should override hashCode.- Overrides:
hashCodein classProjection
-