Class EPSGName
java.lang.Object
org.apache.sis.internal.referencing.provider.EPSGName
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
FieldsModifier and TypeFieldDescriptionprivate 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, ornull
if unknown. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
EPSGName()
Do not allow (for now) instantiation of this class. -
Method Summary
Modifier and TypeMethodDescriptionstatic NamedIdentifier
Creates an EPSG name or alias.static org.opengis.metadata.Identifier
identifier
(int code) Creates an EPSG identifier.properties
(int identifier, String name, String nameOGC) Creates a map of properties to be given to the construction of an operation method.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.
-
Field Details
-
VERSION
Version of the operation method, ornull
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 REMARKSPlaceholder 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
Creates an EPSG name or alias.- Parameters:
code
- the EPSG name to be returned byImmutableIdentifier.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
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, ornull
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, ornull
if none.- Returns:
- a map of properties for building the operation method.
-