Class DoubleStereographic

java.lang.Object
org.openstreetmap.josm.data.projection.proj.AbstractProj
org.openstreetmap.josm.data.projection.proj.DoubleStereographic
All Implemented Interfaces:
Proj

public class DoubleStereographic extends AbstractProj
Implementation of the stereographic double projection, also known as Oblique Stereographic and the Schreiber double stereographic projection.
  • Field Details

  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: Proj
      Replies a human readable name of this projection.
      Returns:
      The projection name. must not be null.
    • getProj4Id

      public String getProj4Id()
      Description copied from interface: Proj
      Replies the Proj.4 identifier.
      Returns:
      The Proj.4 identifier (as reported by cs2cs -lp). If no id exists, return null.
    • initialize

      Description copied from interface: Proj
      Initialize the projection using the provided parameters.
      Specified by:
      initialize in interface Proj
      Overrides:
      initialize in class AbstractProj
      Parameters:
      params - The projection parameters
      Throws:
      ProjectionConfigurationException - in case parameters are not suitable
    • initialize

      private void initialize(double lat0)
    • project

      public double[] project(double phi, double lambda)
      Description copied from interface: Proj
      Convert lat/lon to east/north.
      Parameters:
      phi - the latitude in radians
      lambda - the longitude in radians
      Returns:
      array of length 2, containing east and north value in meters, divided by the semi major axis of the ellipsoid.
    • invproject

      public double[] invproject(double x, double y)
      Description copied from interface: Proj
      Convert east/north to lat/lon.
      Parameters:
      x - east value in meters, divided by the semi major axis of the ellipsoid
      y - north value in meters, divided by the semi major axis of the ellipsoid
      Returns:
      array of length 2, containing lat and lon in radians.
    • getAlgorithmBounds

      Description copied from interface: Proj
      Return the bounds where this projection is applicable. This is a fallback for when the projection bounds are not specified explicitly. In this area, the round trip lat/lon → east/north → lat/lon should return the starting value with small error. In addition, regions with extreme distortions should be excluded, if possible. It need not be the absolute maximum, but rather an area that is safe to display in JOSM and contain everything that one would expect to use.
      Returns:
      the bounds where this projection is applicable, null if unknown