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

    • 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 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:
      getVendor in interface org.opengis.util.Factory
    • createCoordinateReferenceSystem

      public org.opengis.referencing.crs.CoordinateReferenceSystem createCoordinateReferenceSystem(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(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(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(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(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(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(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(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(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(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 Set<String> getAuthorityCodes(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(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(String code) throws org.opengis.util.FactoryException
      Specified by:
      createObject in interface org.opengis.referencing.AuthorityFactory
      Throws:
      org.opengis.util.FactoryException