Class 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 the provider() static method.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.opengis.referencing.crs.CRSAuthorityFactory INSTANCE
      The unique instance returned by provider().
      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}.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INSTANCE

        private static final org.opengis.referencing.crs.CRSAuthorityFactory INSTANCE
        The unique instance returned by provider().
      • proxy

        private final org.opengis.referencing.crs.CRSAuthorityFactory proxy
        Where to delegate all operations.
    • Constructor Detail

      • AuthorityFactory

        public AuthorityFactory()
        Creates a new instance. WARNING: this constructor may not be accessible anymore in a future version. Do not invoke directly.
    • 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 interface org.opengis.util.Factory
      • createCoordinateReferenceSystem

        public org.opengis.referencing.crs.CoordinateReferenceSystem createCoordinateReferenceSystem​(java.lang.String code)
                                                                                              throws org.opengis.util.FactoryException
        Specified by:
        createCoordinateReferenceSystem in interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.opengis.referencing.crs.CRSAuthorityFactory
        Throws:
        org.opengis.util.FactoryException
      • getAuthority

        public org.opengis.metadata.citation.Citation getAuthority()
        Specified by:
        getAuthority in interface org.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 interface org.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 interface org.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 interface org.opengis.referencing.AuthorityFactory
        Throws:
        org.opengis.util.FactoryException