Class IdentifierEPSG

java.lang.Object
org.locationtech.proj4j.geoapi.Wrapper
org.locationtech.proj4j.geoapi.IdentifierEPSG
All Implemented Interfaces:
org.opengis.metadata.Identifier, org.opengis.referencing.ReferenceIdentifier

final class IdentifierEPSG extends Wrapper
A simple EPSG identifier made of only a code and a code space.
  • Field Details

    • code

      private final int code
      The EPSG code.
  • Constructor Details

    • IdentifierEPSG

      private IdentifierEPSG(int code)
      Creates a new identifier for the given EPSG code.
  • Method Details

    • wrap

      static Set<org.opengis.referencing.ReferenceIdentifier> wrap(int code)
      Wraps the given EPSG code.
      Parameters:
      code - the EPSG code, or 0 if none
      Returns:
      the wrapper, or an empty set if the given EPSG code was 0
    • implementation

      Object implementation()
      Returns the EPSG code..
      Specified by:
      implementation in class Wrapper
      Returns:
      the EPSG code
    • getCodeSpace

      public String getCodeSpace()
      Returns the code space, which is fixed to "EPSG"..
      Specified by:
      getCodeSpace in interface org.opengis.referencing.ReferenceIdentifier
      Overrides:
      getCodeSpace in class Wrapper
      Returns:
      the code space, which is fixed to "EPSG"
    • getCode

      public String getCode()
      Returns the string representation of the EPSG code..
      Specified by:
      getCode in interface org.opengis.metadata.Identifier
      Specified by:
      getCode in class Wrapper
      Returns:
      the string representation of the EPSG code
    • toString

      public String toString()
      Returns the string representation of this identifier..
      Overrides:
      toString in class Wrapper
      Returns:
      the string representation of this identifier