org.geotools.referencing.factory.epsg
Class FactoryUsingWKT
java.lang.Object
org.geotools.factory.AbstractFactory
org.geotools.referencing.factory.AbstractFactory
org.geotools.referencing.factory.AbstractAuthorityFactory
org.geotools.referencing.factory.BufferedAuthorityFactory
org.geotools.referencing.factory.DeferredAuthorityFactory
org.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:
- (...todo...)
- directory in the classpath
or in a JAR file.
- 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. |
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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.
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.