? NZMG


public class NZMG extends Orthomorphic
  • ???????

    • NZMG

      public NZMG(Position p, Ellipsoid e, Datum d)
      Create a new NZMG point for a specific Position, Ellipsoid and Datum.
      ??:
      p - Position
      e - Ellipsoid to use with this instance
      d - Datum to use
    • NZMG

      public NZMG(ENPair point, Ellipsoid e, Datum d)
      Create a new NZMG point for a specific pair of Eastings and Northings, Ellipsoid and Datum.
      ??:
      point - ENPair containing the easting and northing values
      e - Ellipsoid to use with this instance
      d - Datum to use
  • ??????

    • makePoint

      public static NZMG makePoint(String gridref, Ellipsoid e, Datum d) throws GridFormatException
      Static factory method to create an instance of NZMG from a grid reference String
      ??:
      gridref - A grid reference of the form "157203 mE 6752091 mN " where the values are easting and northing distances in m
      e - Ellipsoid to use in conversions
      d - Datum to use in conversions
      ??:
      A new NZMG instance
      ??:
      GridFormatException - thrown in case of format error in the grid reference
    • getEN

      protected static ENPair getEN(String gridref) throws GridFormatException
      Parse NZMG coordinates into easting and northing distances
      ??:
      gridref - A pair of NZMG coordinates (e.g. "2487100.638 mE 6751049.719 mN), specified in m.
      ??:
      Easting and Northing distances (m)
      ??:
      GridFormatException - Invalid coordinate format results in a GridFormatException being thrown
    • defaultEllipsoid

      public Ellipsoid defaultEllipsoid()
      The default Ellipsoid used by instances of this CoordinateSystem For example, a CoordinateSystem of type OSGB has the AirySphere as its default Ellipsoid
      ???:
      defaultEllipsoid ??? CoordinateSystem
      ??:
      The Ellipsoid used as the deafult for this CoordinateSystem
    • defaultDatum

      public Datum defaultDatum()
      Get the defaul Datum for an instance of CoordinateSystem. For example, instances of OSGB usually use the OSGB 1936 datum.
      ???:
      defaultDatum ??? CoordinateSystem
      ??:
      The default Datum used by this instance of CoordinateSystem
    • gridConvergence

      public double gridConvergence()
      Calculate the Grid Convergence for the current location. Grid Convergence is defined as the angle between Grid North and True North. The value is zero on the Central Meridian. In the absence of an algebraic form for grid convergence for NZMG, this implementation reverts to basics and calculates it by making a small increment (delta) north and south of the point and calculating the change in easting and northing values.
      ???:
      gridConvergence ??? Orthomorphic
      ??:
      The value of Grid Convergence (radians)
    • toString

      public String toString()
      Provide a String representing the position in a correct format for the CoordinateSystem
      ???:
      toString ??? CoordinateSystem
      ??:
      String
    • cfi

      public double cfi(int i)
      ???:
      cfi ??? Orthomorphic
    • cfl

      public double cfl(int i)
      ???:
      cfl ??? Orthomorphic
    • n0

      public double n0()
      ???:
      n0 ??? Orthomorphic
    • e0

      public double e0()
      ???:
      e0 ??? Orthomorphic
    • phi0

      public double phi0()
      ???:
      phi0 ??? Orthomorphic
    • lamda0

      public double lamda0()
      ???:
      lamda0 ??? Orthomorphic
    • cfb1

      public Orthomorphic.Complex cfb1(int i)
      ???:
      cfb1 ??? Orthomorphic
    • cfb2

      public Orthomorphic.Complex cfb2(int i)
      ???:
      cfb2 ??? Orthomorphic
    • cfilen

      public int cfilen()
      ???:
      cfilen ??? Orthomorphic
    • cfllen

      public int cfllen()
      ???:
      cfllen ??? Orthomorphic
    • cfblen

      public int cfblen()
      ???:
      cfblen ??? Orthomorphic