Object
Identifier

public class Identifier extends Object
Represents an identifier in PROJJSON.

An identifier consists of an authority (organization or namespace) and a code that is unique within that authority. For example, "EPSG:4326" would be represented with the authority "EPSG" and the code "4326".

  • Constructor Details

    • Identifier

      public Identifier()
      Creates a new Identifier with default values.
  • Method Details

    • getAuthority

      public String getAuthority()
      Gets the authority of the identifier.
      Returns:
      The authority name, e.g., "EPSG"
    • setAuthority

      public void setAuthority(String authority)
      Sets the authority of the identifier.
      Parameters:
      authority - The authority name
    • getCode

      public Object getCode()
      Gets the code of the identifier.

      The code can be either a string or a number in PROJJSON.

      Returns:
      The code, e.g., "4326" or 4326
    • setCode

      public void setCode(Object code)
      Sets the code of the identifier.
      Parameters:
      code - The code
    • getVersion

      public String getVersion()
      Gets the version of the authority.
      Returns:
      The version, e.g., "9.0"
    • setVersion

      public void setVersion(String version)
      Sets the version of the authority.
      Parameters:
      version - The version
    • getUri

      public String getUri()
      Gets the URI associated with this identifier.
      Returns:
      The URI
    • setUri

      public void setUri(String uri)
      Sets the URI associated with this identifier.
      Parameters:
      uri - The URI