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
A simple EPSG identifier made of only a code and a code space.
-
Field Summary
FieldsFields inherited from class Wrapper
BIDIMENSIONAL, TRIDIMENSIONALFields inherited from interface org.opengis.metadata.Identifier
AUTHORITY_KEY, CODE_KEYFields inherited from interface org.opengis.referencing.ReferenceIdentifier
CODESPACE_KEY, VERSION_KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIdentifierEPSG(int code) Creates a new identifier for the given EPSG code. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Returns the string representation of the EPSG code.Returns the code space, which is fixed to "EPSG".(package private) ObjectReturns the EPSG code.toString()Returns the string representation of this identifier.(package private) static Set<org.opengis.referencing.ReferenceIdentifier> wrap(int code) Wraps the given EPSG code.Methods inherited from class Wrapper
equals, getAlias, getAuthority, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, getVersion, hashCode, toWKT
-
Field Details
-
code
private final int codeThe EPSG code.
-
-
Constructor Details
-
IdentifierEPSG
private IdentifierEPSG(int code) Creates a new identifier for the given EPSG code.
-
-
Method Details
-
wrap
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:
implementationin classWrapper- Returns:
- the EPSG code
-
getCodeSpace
Returns the code space, which is fixed to "EPSG"..- Specified by:
getCodeSpacein interfaceorg.opengis.referencing.ReferenceIdentifier- Overrides:
getCodeSpacein classWrapper- Returns:
- the code space, which is fixed to "EPSG"
-
getCode
-
toString
-