Package org.locationtech.proj4j.proj
Class AzimuthalProjection
- java.lang.Object
-
- org.locationtech.proj4j.proj.Projection
-
- org.locationtech.proj4j.proj.AzimuthalProjection
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
EqualAreaAzimuthalProjection
,EquidistantAzimuthalProjection
,GnomonicAzimuthalProjection
,OrthographicAzimuthalProjection
,StereographicAzimuthalProjection
public abstract class AzimuthalProjection extends Projection
The superclass for all azimuthal map projections- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected double
cosphi0
static int
EQUATOR
private double
mapRadius
protected int
mode
static int
NORTH_POLE
static int
OBLIQUE
protected double
sinphi0
static int
SOUTH_POLE
-
Fields inherited from class org.locationtech.proj4j.proj.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 Constructor Description AzimuthalProjection()
AzimuthalProjection(double projectionLatitude, double projectionLongitude)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object that)
Represents quality between possible outputs ofProjection.project(ProjCoordinate, ProjCoordinate)
.double
getMapRadius()
int
hashCode()
Hash of those fields considered in Projection equalituy.void
initialize()
Initialize the projection.boolean
inside(double lon, double lat)
Returns true if the given lat/long point is visible in this projectionvoid
setMapRadius(double mapRadius)
Set the map radius (in degrees).-
Methods inherited from class org.locationtech.proj4j.proj.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 Detail
-
NORTH_POLE
public static final int NORTH_POLE
- See Also:
- Constant Field Values
-
SOUTH_POLE
public static final int SOUTH_POLE
- See Also:
- Constant Field Values
-
EQUATOR
public static final int EQUATOR
- See Also:
- Constant Field Values
-
OBLIQUE
public static final int OBLIQUE
- See Also:
- Constant Field Values
-
mode
protected int mode
-
sinphi0
protected double sinphi0
-
cosphi0
protected double cosphi0
-
mapRadius
private double mapRadius
-
-
Method Detail
-
initialize
public void initialize()
Description copied from class:Projection
Initialize 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:
initialize
in classProjection
-
inside
public boolean inside(double lon, double lat)
Description copied from class:Projection
Returns true if the given lat/long point is visible in this projection- Overrides:
inside
in 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
public boolean equals(java.lang.Object that)
Description copied from class:Projection
Represents 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:
equals
in classProjection
-
hashCode
public int hashCode()
Description copied from class:Projection
Hash of those fields considered in Projection equalituy. Subclasses that override equality should override hashCode.- Overrides:
hashCode
in classProjection
-
-