Class HorizontalCS

java.lang.Object
org.geotiff.epsg.HorizontalCS
Direct Known Subclasses:
GeographicCS, ProjectedCS

public abstract class HorizontalCS extends Object
Represents the base class of the EPSG horizontal coordinate systems. It is also contains the factory method for constructing these things.
Author:
Niles D. Ritter
  • Field Details

    • WGS84

      public static int WGS84
  • Constructor Details

    • HorizontalCS

      protected HorizontalCS(int code)
  • Method Details

    • setCode

      protected void setCode(int aCode)
    • getCode

      public int getCode()
    • getGeographicCS

      public abstract HorizontalCS getGeographicCS()
      This method must be implemented by the concrete class to return the underlying geographic coordinate system.
      Returns:
      the GeographicCS for this HorizontalCS
    • create

      public static HorizontalCS create(int code) throws InvalidCodeException
      Factory method for coordinate systems.
      Parameters:
      code - EPSG code of this Coordinate Reference System
      Returns:
      a Horizontal Coordinate Reference System
      Throws:
      InvalidCodeException - if code is not valid