Class AuthorityFactory
- java.lang.Object
-
- org.locationtech.proj4j.geoapi.spi.AuthorityFactory
-
- All Implemented Interfaces:
org.opengis.referencing.AuthorityFactory
,org.opengis.referencing.crs.CRSAuthorityFactory
,org.opengis.util.Factory
public final class AuthorityFactory extends java.lang.Object implements org.opengis.referencing.crs.CRSAuthorityFactory
Registers PROJ4J wrappers as a CRS authority factory.Future evolution
In a future version, it may not be possible anymore to instantiate this class. For now, we have to allow instantiation for compatibility with Java 8 services. If a future version of PROJ4J migrates to Java 9 module system, the only way to get the factory will by invoking theprovider()
static method.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.opengis.referencing.crs.CRSAuthorityFactory
INSTANCE
The unique instance returned byprovider()
.private org.opengis.referencing.crs.CRSAuthorityFactory
proxy
Where to delegate all operations.
-
Constructor Summary
Constructors Constructor Description AuthorityFactory()
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opengis.referencing.crs.CompoundCRS
createCompoundCRS(java.lang.String code)
org.opengis.referencing.crs.CoordinateReferenceSystem
createCoordinateReferenceSystem(java.lang.String code)
org.opengis.referencing.crs.DerivedCRS
createDerivedCRS(java.lang.String code)
org.opengis.referencing.crs.EngineeringCRS
createEngineeringCRS(java.lang.String code)
org.opengis.referencing.crs.GeocentricCRS
createGeocentricCRS(java.lang.String code)
org.opengis.referencing.crs.GeographicCRS
createGeographicCRS(java.lang.String code)
org.opengis.referencing.crs.ImageCRS
createImageCRS(java.lang.String code)
org.opengis.referencing.IdentifiedObject
createObject(java.lang.String code)
org.opengis.referencing.crs.ProjectedCRS
createProjectedCRS(java.lang.String code)
org.opengis.referencing.crs.TemporalCRS
createTemporalCRS(java.lang.String code)
org.opengis.referencing.crs.VerticalCRS
createVerticalCRS(java.lang.String code)
org.opengis.metadata.citation.Citation
getAuthority()
java.util.Set<java.lang.String>
getAuthorityCodes(java.lang.Class<? extends org.opengis.referencing.IdentifiedObject> type)
org.opengis.util.InternationalString
getDescriptionText(java.lang.String code)
org.opengis.metadata.citation.Citation
getVendor()
static org.opengis.referencing.crs.CRSAuthorityFactory
provider()
{@return the factory backed by PROJ4J}.
-
-
-
Field Detail
-
INSTANCE
private static final org.opengis.referencing.crs.CRSAuthorityFactory INSTANCE
The unique instance returned byprovider()
.
-
proxy
private final org.opengis.referencing.crs.CRSAuthorityFactory proxy
Where to delegate all operations.
-
-
Method Detail
-
provider
public static org.opengis.referencing.crs.CRSAuthorityFactory provider()
{@return the factory backed by PROJ4J}. This is the method that should be invoked when using Java 9+ module system.
-
getVendor
public org.opengis.metadata.citation.Citation getVendor()
- Specified by:
getVendor
in interfaceorg.opengis.util.Factory
-
createCoordinateReferenceSystem
public org.opengis.referencing.crs.CoordinateReferenceSystem createCoordinateReferenceSystem(java.lang.String code) throws org.opengis.util.FactoryException
- Specified by:
createCoordinateReferenceSystem
in interfaceorg.opengis.referencing.crs.CRSAuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
createCompoundCRS
public org.opengis.referencing.crs.CompoundCRS createCompoundCRS(java.lang.String code) throws org.opengis.util.FactoryException
- Specified by:
createCompoundCRS
in interfaceorg.opengis.referencing.crs.CRSAuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
createDerivedCRS
public org.opengis.referencing.crs.DerivedCRS createDerivedCRS(java.lang.String code) throws org.opengis.util.FactoryException
- Specified by:
createDerivedCRS
in interfaceorg.opengis.referencing.crs.CRSAuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
createEngineeringCRS
public org.opengis.referencing.crs.EngineeringCRS createEngineeringCRS(java.lang.String code) throws org.opengis.util.FactoryException
- Specified by:
createEngineeringCRS
in interfaceorg.opengis.referencing.crs.CRSAuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
createGeographicCRS
public org.opengis.referencing.crs.GeographicCRS createGeographicCRS(java.lang.String code) throws org.opengis.util.FactoryException
- Specified by:
createGeographicCRS
in interfaceorg.opengis.referencing.crs.CRSAuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
createGeocentricCRS
public org.opengis.referencing.crs.GeocentricCRS createGeocentricCRS(java.lang.String code) throws org.opengis.util.FactoryException
- Specified by:
createGeocentricCRS
in interfaceorg.opengis.referencing.crs.CRSAuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
createImageCRS
public org.opengis.referencing.crs.ImageCRS createImageCRS(java.lang.String code) throws org.opengis.util.FactoryException
- Specified by:
createImageCRS
in interfaceorg.opengis.referencing.crs.CRSAuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
createProjectedCRS
public org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.lang.String code) throws org.opengis.util.FactoryException
- Specified by:
createProjectedCRS
in interfaceorg.opengis.referencing.crs.CRSAuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
createTemporalCRS
public org.opengis.referencing.crs.TemporalCRS createTemporalCRS(java.lang.String code) throws org.opengis.util.FactoryException
- Specified by:
createTemporalCRS
in interfaceorg.opengis.referencing.crs.CRSAuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
createVerticalCRS
public org.opengis.referencing.crs.VerticalCRS createVerticalCRS(java.lang.String code) throws org.opengis.util.FactoryException
- Specified by:
createVerticalCRS
in interfaceorg.opengis.referencing.crs.CRSAuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
getAuthority
public org.opengis.metadata.citation.Citation getAuthority()
- Specified by:
getAuthority
in interfaceorg.opengis.referencing.AuthorityFactory
-
getAuthorityCodes
public java.util.Set<java.lang.String> getAuthorityCodes(java.lang.Class<? extends org.opengis.referencing.IdentifiedObject> type) throws org.opengis.util.FactoryException
- Specified by:
getAuthorityCodes
in interfaceorg.opengis.referencing.AuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
getDescriptionText
public org.opengis.util.InternationalString getDescriptionText(java.lang.String code) throws org.opengis.util.FactoryException
- Specified by:
getDescriptionText
in interfaceorg.opengis.referencing.AuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
createObject
public org.opengis.referencing.IdentifiedObject createObject(java.lang.String code) throws org.opengis.util.FactoryException
- Specified by:
createObject
in interfaceorg.opengis.referencing.AuthorityFactory
- Throws:
org.opengis.util.FactoryException
-
-