java.lang.Object
org.apache.sis.internal.referencing.provider.EPSGName

public final class EPSGName extends Object
Placeholder for the name of an operation method or a parameter defined in the EPSG database. We use this placeholder for remembering where to manage IdentifiedObject version. Future implementation may also be able to read the remarks from the database if requested.
Since:
0.6
Version:
0.6
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.opengis.util.InternationalString
    Placeholder for what may be (in a future Apache SIS version) an implementation capable to fetch the remarks from the database using the given identifier code.
    private static final String
    Version of the operation method, or null if unknown.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Do not allow (for now) instantiation of this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String code)
    Creates an EPSG name or alias.
    static org.opengis.metadata.Identifier
    identifier(int code)
    Creates an EPSG identifier.
    static Map<String,Object>
    properties(int identifier, String name, String nameOGC)
    Creates a map of properties to be given to the construction of an operation method.
    static Map<String,Object>
    properties(int identifier, String name, org.opengis.util.GenericName nameOGC)
    Creates a map of properties to be given to the construction of an operation method.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • VERSION

      private static final String VERSION
      Version of the operation method, or null if unknown.

      This is unspecified in current Apache SIS implementation. However, future SIS implementations may fetch this information from the EPSG database. In the meantime, we use this constant as a way to track the places in Apache SIS code base where this information is desired.

    • REMARKS

      private static final org.opengis.util.InternationalString REMARKS
      Placeholder for what may be (in a future Apache SIS version) an implementation capable to fetch the remarks from the database using the given identifier code.

      This is unspecified in current Apache SIS implementation. However, future SIS implementations may fetch this information from the EPSG database. In the meantime, we use this constant as a way to track the places in Apache SIS code base where this information is desired.

  • Constructor Details

    • EPSGName

      private EPSGName()
      Do not allow (for now) instantiation of this class.
  • Method Details

    • create

      public static NamedIdentifier create(String code)
      Creates an EPSG name or alias.
      Parameters:
      code - the EPSG name to be returned by ImmutableIdentifier.getCode().
      Returns:
      an EPSG name or alias for the given string.
    • identifier

      public static org.opengis.metadata.Identifier identifier(int code)
      Creates an EPSG identifier.
      Parameters:
      code - the EPSG code.
      Returns:
      the EPSG identifier for the given numerical value.
    • properties

      public static Map<String,Object> properties(int identifier, String name, String nameOGC)
      Creates a map of properties to be given to the construction of an operation method. The returned map is modifiable - callers can add or remove entries after this method call.
      Parameters:
      identifier - the EPSG code.
      name - the EPSG name.
      nameOGC - the OGC name, or null if none.
      Returns:
      a map of properties for building the operation method.
    • properties

      public static Map<String,Object> properties(int identifier, String name, org.opengis.util.GenericName nameOGC)
      Creates a map of properties to be given to the construction of an operation method. The returned map is modifiable - callers can add or remove entries after this method call.
      Parameters:
      identifier - the EPSG code.
      name - the EPSG name.
      nameOGC - the OGC name, or null if none.
      Returns:
      a map of properties for building the operation method.