Class Identifier
Object
Identifier
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the authority of the identifier.getCode()Gets the code of the identifier.getUri()Gets the URI associated with this identifier.Gets the version of the authority.voidsetAuthority(String authority) Sets the authority of the identifier.voidSets the code of the identifier.voidSets the URI associated with this identifier.voidsetVersion(String version) Sets the version of the authority.
-
Constructor Details
-
Identifier
public Identifier()Creates a new Identifier with default values.
-
-
Method Details
-
getAuthority
Gets the authority of the identifier.- Returns:
- The authority name, e.g., "EPSG"
-
setAuthority
Sets the authority of the identifier.- Parameters:
authority- The authority name
-
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
Sets the code of the identifier.- Parameters:
code- The code
-
getVersion
Gets the version of the authority.- Returns:
- The version, e.g., "9.0"
-
setVersion
Sets the version of the authority.- Parameters:
version- The version
-
getUri
Gets the URI associated with this identifier.- Returns:
- The URI
-
setUri
Sets the URI associated with this identifier.- Parameters:
uri- The URI
-