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 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
FieldsModifier and TypeFieldDescriptionprivate static final org.opengis.referencing.crs.CRSAuthorityFactoryThe unique instance returned byprovider().private final org.opengis.referencing.crs.CRSAuthorityFactoryWhere to delegate all operations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.referencing.crs.CompoundCRScreateCompoundCRS(String code) org.opengis.referencing.crs.CoordinateReferenceSystemorg.opengis.referencing.crs.DerivedCRScreateDerivedCRS(String code) org.opengis.referencing.crs.EngineeringCRScreateEngineeringCRS(String code) org.opengis.referencing.crs.GeocentricCRScreateGeocentricCRS(String code) org.opengis.referencing.crs.GeographicCRScreateGeographicCRS(String code) org.opengis.referencing.crs.ImageCRScreateImageCRS(String code) org.opengis.referencing.IdentifiedObjectcreateObject(String code) org.opengis.referencing.crs.ProjectedCRScreateProjectedCRS(String code) org.opengis.referencing.crs.TemporalCRScreateTemporalCRS(String code) org.opengis.referencing.crs.VerticalCRScreateVerticalCRS(String code) org.opengis.metadata.citation.CitationgetAuthorityCodes(Class<? extends org.opengis.referencing.IdentifiedObject> type) org.opengis.util.InternationalStringgetDescriptionText(String code) org.opengis.metadata.citation.Citationstatic org.opengis.referencing.crs.CRSAuthorityFactoryprovider()Returns the factory backed by PROJ4J.
-
Field Details
-
INSTANCE
private static final org.opengis.referencing.crs.CRSAuthorityFactory INSTANCEThe unique instance returned byprovider(). -
proxy
private final org.opengis.referencing.crs.CRSAuthorityFactory proxyWhere to delegate all operations.
-
-
Constructor Details
-
AuthorityFactory
public AuthorityFactory()Creates a new instance. WARNING: this constructor may not be accessible anymore in a future version. Do not invoke directly.
-
-
Method Details
-
provider
public static org.opengis.referencing.crs.CRSAuthorityFactory provider()Returns the factory backed by PROJ4J.. This is the method that should be invoked when using Java 9+ module system.- Returns:
- the factory backed by PROJ4J
-
getVendor
public org.opengis.metadata.citation.Citation getVendor()- Specified by:
getVendorin interfaceorg.opengis.util.Factory
-
createCoordinateReferenceSystem
public org.opengis.referencing.crs.CoordinateReferenceSystem createCoordinateReferenceSystem(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(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(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(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(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(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(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(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(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(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
-
getDescriptionText
public org.opengis.util.InternationalString getDescriptionText(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(String code) throws org.opengis.util.FactoryException - Specified by:
createObjectin interfaceorg.opengis.referencing.AuthorityFactory- Throws:
org.opengis.util.FactoryException
-