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 doublecosphi0static intEQUATORprivate doublemapRadiusprotected intmodestatic intNORTH_POLEstatic intOBLIQUEprotected doublesinphi0static intSOUTH_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 booleanequals(java.lang.Object that)Represents quality between possible outputs ofProjection.project(ProjCoordinate, ProjCoordinate).doublegetMapRadius()inthashCode()Hash of those fields considered in Projection equalituy.voidinitialize()Initialize 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 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: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
public boolean equals(java.lang.Object that)
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
-
-