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

public abstract class AzimuthalProjection extends Projection
The superclass for all azimuthal map projections
See Also:
  • 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 class Projection
    • 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 class Projection
    • 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(Object that)
      Description copied from class: Projection
      Represents quality between possible outputs of Projection.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 class Projection
    • 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 class Projection