Class DatumFactory

java.lang.Object
noaa.coastwatch.util.trans.DatumFactory
All Implemented Interfaces:
SpheroidConstants

public class DatumFactory extends Object implements SpheroidConstants
The DatumFactory class creates geodetic Datum objects corresponding to various spheroid codes.
Since:
3.2.0
Author:
Peter Hollemans
  • Constructor Details

    • DatumFactory

      public DatumFactory()
  • Method Details

    • create

      public static Datum create(int spheroid)
      Creates a datum instance based on a spheroid code. Since Datum instances are immutable, the same instance is returned each time for the same spheroid code.
      Parameters:
      spheroid - the spheroid code for the datum.
      Returns:
      the datum object, or null if the specified spheroid has no valid datum.