org.geotools.referencing.factory.epsg
Class EsriExtension
java.lang.Object
org.geotools.factory.AbstractFactory
org.geotools.referencing.factory.ReferencingFactory
org.geotools.referencing.factory.AbstractAuthorityFactory
org.geotools.referencing.factory.BufferedAuthorityFactory
org.geotools.referencing.factory.DeferredAuthorityFactory
org.geotools.referencing.factory.epsg.FactoryUsingWKT
org.geotools.referencing.factory.epsg.EsriExtension
- All Implemented Interfaces:
- javax.imageio.spi.RegisterableService, BufferedFactory, Factory, OptionalFactory, org.opengis.referencing.AuthorityFactory, org.opengis.referencing.crs.CRSAuthorityFactory
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
- Version:
- $Id: EsriExtension.java 30656 2008-06-12 20:32:50Z acuster $
- Author:
- Martin Desruisseaux
Field Summary |
static java.lang.String |
FILENAME
The default filename to read. |
Constructor Summary |
EsriExtension()
Constructs an authority factory using the default set of factories. |
EsriExtension(Hints hints)
Constructs an authority factory using a set of factories created from the specified hints. |
Method Summary |
protected org.opengis.metadata.citation.Citation[] |
getAuthorities()
Returns the set of authorities to use as identifiers for the CRS to be created. |
protected java.net.URL |
getDefinitionsURL()
Returns the URL to the property file that contains CRS definitions. |
static void |
main(java.lang.String[] args)
Prints a list of codes that duplicate the ones provided in the DefaultFactory . |
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, getIdentifiedObjectFinder, getVendor |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.referencing.crs.CRSAuthorityFactory |
createCompoundCRS, createCoordinateReferenceSystem, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRS |
Methods inherited from interface org.opengis.referencing.AuthorityFactory |
createObject, getAuthorityCodes, getDescriptionText |
Methods inherited from interface org.opengis.referencing.Factory |
getVendor |
FILENAME
public static final java.lang.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:
getDefinitionsURL()
,
Constant Field Values
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.
getAuthorities
protected org.opengis.metadata.citation.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 java.net.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(java.lang.String[] args)
throws org.opengis.referencing.FactoryException
- Prints a list of codes that duplicate the ones provided in the
DefaultFactory
.
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:
-test | Try to instantiate all CRS and reports any failure
to do so. |
-duplicated | List all codes from the WKT factory that are
duplicating a code from the SQL factory. |
- Parameters:
args
- Command line arguments.
- Throws:
org.opengis.referencing.FactoryException
- if an error occured.
Copyright © 1996-2010 Geotools. All Rights Reserved.