Package org.locationtech.proj4j.geoapi
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
final class IdentifierEPSG extends Wrapper
A simple EPSG identifier made of only a code and a code space.
-
-
Field Summary
Fields Modifier and Type Field Description private intcodeThe EPSG code.-
Fields inherited from class org.locationtech.proj4j.geoapi.Wrapper
BIDIMENSIONAL, TRIDIMENSIONAL
-
-
Constructor Summary
Constructors Modifier Constructor Description privateIdentifierEPSG(int code)Creates a new identifier for the given EPSG code.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCode(){@return the string representation of the EPSG code}.java.lang.StringgetCodeSpace(){@return the code space, which is fixed to "EPSG"}.(package private) java.lang.Objectimplementation(){@return the EPSG code}.java.lang.StringtoString(){@return the string representation of this identifier}.(package private) static java.util.Set<org.opengis.referencing.ReferenceIdentifier>wrap(int code)Wraps the given EPSG code.-
Methods inherited from class org.locationtech.proj4j.geoapi.Wrapper
equals, getAlias, getAuthority, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, getVersion, hashCode, toWKT
-
-
-
-
Method Detail
-
wrap
static java.util.Set<org.opengis.referencing.ReferenceIdentifier> wrap(int code)
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
java.lang.Object implementation()
{@return the EPSG code}.- Specified by:
implementationin classWrapper
-
getCodeSpace
public java.lang.String getCodeSpace()
{@return the code space, which is fixed to "EPSG"}.- Specified by:
getCodeSpacein interfaceorg.opengis.referencing.ReferenceIdentifier- Overrides:
getCodeSpacein classWrapper
-
getCode
public java.lang.String getCode()
{@return the string representation of the EPSG code}.
-
-