Class EPSG4326

java.lang.Object
com.massifmaps.projections.Projection
com.massifmaps.projections.EPSG4326

public class EPSG4326 extends Projection
EPSG:4326 is a projection coordinate system that uses WGS84 coordinates (longitude/latitude).
Z-coordinate denotes height in meters.
  • Constructor Details

    • EPSG4326

      public EPSG4326()
  • Method Details

    • fromWgs84

      public MapPos fromWgs84(MapPos wgs84Pos)
      Description copied from class: Projection
      Transforms a position from the WGS84 coordinate system to the coordinate system of this projection.
      Overrides:
      fromWgs84 in class Projection
      Parameters:
      wgs84Pos - The position in the WGS84 coordinate system. It should be encoded as longitude-latitude.
      Returns:
      The transformed position in the coordinate system of this projection.
    • toWgs84

      public MapPos toWgs84(MapPos mapPos)
      Description copied from class: Projection
      Transforms a position from the coordinate system of this projection to the WGS84 coordinate system.
      Overrides:
      toWgs84 in class Projection
      Parameters:
      mapPos - The position in the coordinate system of this projection.
      Returns:
      The transformed position in the WGS84 coordinate system. It is given as longitude-latitude.
    • getName

      public String getName()
      Description copied from class: Projection
      Return name of this projection in Well-Known format. For example, as "EPSG:3857"
      Overrides:
      getName in class Projection
      Returns:
      The name of this projection.