Interface Projection

All Superinterfaces:
Cloneable, Comparable<Projection>, Serializable
All Known Implementing Classes:
CombinedProjection, HotineObliqueMercator, LambertConformConic, LongitudeLatitude, Mercator, Mtm, PlateCarree, Proj4jProjection, SphericalMercator, Stereographic, SwissObliqueMercator, TransverseMercator, Utm

public interface Projection extends Serializable, Comparable<Projection>, Cloneable
  • Field Details

  • Method Details

    • clone

      Object clone()
      Clones the current projection.
      Returns:
      a new projection instance created from the current projection.
    • setParams

      void setParams(String s)
    • setName

      void setName(String s)
    • setEPSG

      void setEPSG(String s)
    • getParams

      String getParams()
    • getName

      String getName()
      Returns:
      name - epsg
    • getEPSG

      String getEPSG()
    • getUnit

      JMapUnit getUnit()
    • toMapInfo

      String toMapInfo()
    • equals

      boolean equals(Projection proj)
    • getSemimajorAxis

      double getSemimajorAxis()
    • getSemiminorAxis

      double getSemiminorAxis()
    • apply

      Point apply(Point p)
      Transforms coordinates from latitude-longitude to another projection.
      Parameters:
      p - the coordinate to transform.
      Returns:
      the transformed coordinate.
    • applyInverse

      Point applyInverse(Point p)
      Transforms coordinates a projection to latitude-longitude.
      Parameters:
      p - the coordinate to transform.
      Returns:
      the transformed coordinate.
    • toString

      String toString()
      Overrides:
      toString in class Object