org.geotools.referencing.factory.epsg
Class FactoryUsingWKT

java.lang.Object
  extended byorg.geotools.factory.AbstractFactory
      extended byorg.geotools.referencing.factory.AbstractFactory
          extended byorg.geotools.referencing.factory.AbstractAuthorityFactory
              extended byorg.geotools.referencing.factory.BufferedAuthorityFactory
                  extended byorg.geotools.referencing.factory.DeferredAuthorityFactory
                      extended byorg.geotools.referencing.factory.epsg.FactoryUsingWKT
All Implemented Interfaces:
org.opengis.referencing.AuthorityFactory, org.opengis.referencing.operation.CoordinateOperationAuthorityFactory, org.opengis.referencing.crs.CRSAuthorityFactory, org.opengis.referencing.cs.CSAuthorityFactory, org.opengis.referencing.datum.DatumAuthorityFactory, Factory, org.opengis.referencing.Factory, OptionalFactory, javax.imageio.spi.RegisterableService

public class FactoryUsingWKT
extends DeferredAuthorityFactory

Implementation for a coordinate reference system authority factory backed by the EPSG property file. This factory is used as a fallback when no connection to an EPSG database is available. It search for a file named {@value} in the first of the following locations where such a file is found:

Since:
2.1
Version:
$Id: FactoryUsingWKT.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Jody Garnett, Rueben Schulz, Martin Desruisseaux

Field Summary
static java.lang.String FILENAME
          The filename to read.
 
Fields inherited from class org.geotools.referencing.factory.AbstractAuthorityFactory
factories
 
Fields inherited from class org.geotools.referencing.factory.AbstractFactory
LOGGER
 
Fields inherited from class org.geotools.factory.AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
Constructor Summary
FactoryUsingWKT()
          Constructs an authority factory using the default set of factories.
FactoryUsingWKT(Hints hints)
          Constructs an authority factory using a set of factories created from the specified hints.
 
Method Summary
protected  AbstractAuthorityFactory createBackingStore()
          Creates the backing store authority factory.
 org.opengis.metadata.citation.Citation getAuthority()
          Returns the authority, which is EPSG.
 
Methods inherited from class org.geotools.referencing.factory.DeferredAuthorityFactory
canDisposeBackingStore, dispose, isConnected, isReady, setTimeout
 
Methods inherited from class org.geotools.referencing.factory.BufferedAuthorityFactory
createCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateReferenceSystem, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createExtent, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createObject, createOperationMethod, createParameterDescriptor, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, getAuthorityCodes, getBackingStoreDescription, getDescriptionText, getVendor
 
Methods inherited from class org.geotools.referencing.factory.AbstractAuthorityFactory
getImplementationHints, noSuchAuthorityCode, onRegistration, trimAuthority
 
Methods inherited from class org.geotools.referencing.factory.AbstractFactory
ensureNonNull
 
Methods inherited from class org.geotools.factory.AbstractFactory
onDeregistration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.factory.Factory
getImplementationHints
 

Field Detail

FILENAME

public static final java.lang.String FILENAME
The filename to read. This file will be searched in all locations described in the class javadoc.

See Also:
Constant Field Values
Constructor Detail

FactoryUsingWKT

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


FactoryUsingWKT

public FactoryUsingWKT(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 hints. In addition, the FactoryGroup.HINT_KEY hint may be used as a low-level substitute for all the above.

Method Detail

getAuthority

public org.opengis.metadata.citation.Citation getAuthority()
Returns the authority, which is EPSG.

Specified by:
getAuthority in interface org.opengis.referencing.AuthorityFactory
Overrides:
getAuthority in class BufferedAuthorityFactory

createBackingStore

protected AbstractAuthorityFactory createBackingStore()
                                               throws org.opengis.referencing.FactoryException
Creates the backing store authority factory. This method search for the {@value} file in all locations described in the class javadoc.

Specified by:
createBackingStore in class DeferredAuthorityFactory
Returns:
The backing store to uses in methods.
Throws:
org.opengis.referencing.FactoryException - if the constructor failed to find or read the file. This exception usually has an IOException as its cause.


Copyright © GeoTools. All Rights Reserved.