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.CRSAuthorityFactoryRegisters 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.CRSAuthorityFactoryINSTANCEThe unique instance returned byprovider().private org.opengis.referencing.crs.CRSAuthorityFactoryproxyWhere 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.CompoundCRScreateCompoundCRS(java.lang.String code)org.opengis.referencing.crs.CoordinateReferenceSystemcreateCoordinateReferenceSystem(java.lang.String code)org.opengis.referencing.crs.DerivedCRScreateDerivedCRS(java.lang.String code)org.opengis.referencing.crs.EngineeringCRScreateEngineeringCRS(java.lang.String code)org.opengis.referencing.crs.GeocentricCRScreateGeocentricCRS(java.lang.String code)org.opengis.referencing.crs.GeographicCRScreateGeographicCRS(java.lang.String code)org.opengis.referencing.crs.ImageCRScreateImageCRS(java.lang.String code)org.opengis.referencing.IdentifiedObjectcreateObject(java.lang.String code)org.opengis.referencing.crs.ProjectedCRScreateProjectedCRS(java.lang.String code)org.opengis.referencing.crs.TemporalCRScreateTemporalCRS(java.lang.String code)org.opengis.referencing.crs.VerticalCRScreateVerticalCRS(java.lang.String code)org.opengis.metadata.citation.CitationgetAuthority()java.util.Set<java.lang.String>getAuthorityCodes(java.lang.Class<? extends org.opengis.referencing.IdentifiedObject> type)org.opengis.util.InternationalStringgetDescriptionText(java.lang.String code)org.opengis.metadata.citation.CitationgetVendor()static org.opengis.referencing.crs.CRSAuthorityFactoryprovider(){@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:
getVendorin interfaceorg.opengis.util.Factory
-
createCoordinateReferenceSystem
public org.opengis.referencing.crs.CoordinateReferenceSystem createCoordinateReferenceSystem(java.lang.String code) throws org.opengis.util.FactoryException- Specified by:
createCoordinateReferenceSystemin 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:
createCompoundCRSin 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:
createDerivedCRSin 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:
createEngineeringCRSin 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:
createGeographicCRSin 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:
createGeocentricCRSin 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:
createImageCRSin 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:
createProjectedCRSin 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:
createTemporalCRSin 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:
createVerticalCRSin interfaceorg.opengis.referencing.crs.CRSAuthorityFactory- Throws:
org.opengis.util.FactoryException
-
getAuthority
public org.opengis.metadata.citation.Citation getAuthority()
- Specified by:
getAuthorityin 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:
getAuthorityCodesin 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:
getDescriptionTextin 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:
createObjectin interfaceorg.opengis.referencing.AuthorityFactory- Throws:
org.opengis.util.FactoryException
-
-