Package org.locationtech.proj4j.proj
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 double
static final int
private double
protected int
static final int
static final int
protected double
static final int
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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
Represents quality between possible outputs ofProjection.project(ProjCoordinate, ProjCoordinate)
.double
int
hashCode()
Hash of those fields considered in Projection equalituy.void
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 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: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
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
-