Class EsriExtension

All Implemented Interfaces:
AuthorityFactory, CRSAuthorityFactory, Factory, BufferedFactory, Factory, OptionalFactory, RegistrableFactory

public class EsriExtension extends FactoryUsingWKT
Extends the EPSG database with Coordinate Reference Systems defined by ESRI. Those CRS will be registered both in "ESRI" and "EPSG" name space.
Since:
2.4
Author:
Martin Desruisseaux
  • Field Details

    • FILENAME

      public static final String FILENAME
      The default filename to read. This file will be searched in the org/geotools/referencing/factory/espg directory in the classpath or in a JAR file.
      See Also:
  • Constructor Details

    • EsriExtension

      public EsriExtension()
      Constructs an authority factory using the default set of factories.
    • EsriExtension

      public EsriExtension(Hints hints)
      Constructs an authority factory using a set of factories created from the specified hints. This constructor recognizes the CRS, CS, DATUM and MATH_TRANSFORM FACTORY hints.
  • Method Details

    • getAuthorities

      protected Citation[] getAuthorities()
      Returns the set of authorities to use as identifiers for the CRS to be created. The default implementation returns ESRI and EPSG authorities.
      Overrides:
      getAuthorities in class FactoryUsingWKT
    • getDefinitionsURL

      protected URL getDefinitionsURL()
      Returns the URL to the property file that contains CRS definitions. The default implementation returns the URL to the "esri.properties" file.
      Overrides:
      getDefinitionsURL in class FactoryUsingWKT
      Returns:
      The URL, or null if none.
    • main

      public static void main(String[] args) throws FactoryException
      Prints a list of codes that duplicate the ones provided in the default factory. The factory tested is the one registered in ReferencingFactoryFinder. By default, this is this EsriExtension class backed by the "esri.properties" property file. This method can be invoked from the command line in order to check the content of the property file. Valid arguments are:

      -testTry to instantiate all CRS and reports any failure to do so.
      -duplicatedList all codes from the WKT factory that are duplicating a code from the SQL factory.
      Parameters:
      args - Command line arguments.
      Throws:
      FactoryException - if an error occured.