Class EsriExtension
- All Implemented Interfaces:
AuthorityFactory
,CRSAuthorityFactory
,Factory
,BufferedFactory
,Factory
,OptionalFactory
,RegistrableFactory
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 Summary
FieldsFields inherited from class FactoryUsingWKT
DEFAULT_PRIORITY
Fields inherited from class ReferencingFactory
LOGGER
Fields inherited from class AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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
Modifier and TypeMethodDescriptionprotected Citation[]
Returns the set of authorities to use as identifiers for the CRS to be created.protected URL
Returns the URL to the property file that contains CRS definitions.static void
Prints a list of codes that duplicate the ones provided in the default factory.Methods inherited from class FactoryUsingWKT
createBackingStore, getAuthority, getFactory, main, reportDuplicatedCodes, reportInstantiationFailures
Methods inherited from class DeferredAuthorityFactory
canDisposeBackingStore, dispose, disposeBackingStore, exit, getBackingStore, isAvailable, isConnected, setTimeout
Methods inherited from class 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 AbstractAuthorityFactory
noSuchAuthorityCode, trimAuthority
Methods inherited from class ReferencingFactory
ensureNonNull
Methods inherited from class AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
Methods inherited from interface AuthorityFactory
createObject, getAuthorityCodes, getDescriptionText
Methods inherited from interface CRSAuthorityFactory
createCompoundCRS, createCoordinateReferenceSystem, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRS
Methods inherited from interface Factory
getImplementationHints
-
Field Details
-
FILENAME
The default filename to read. This file will be searched in theorg/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
Constructs an authority factory using a set of factories created from the specified hints. This constructor recognizes theCRS
,CS
,DATUM
andMATH_TRANSFORM
FACTORY
hints.
-
-
Method Details
-
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 classFactoryUsingWKT
-
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 classFactoryUsingWKT
- Returns:
- The URL, or
null
if none.
-
main
Prints a list of codes that duplicate the ones provided in the default factory. The factory tested is the one registered inReferencingFactoryFinder
. By default, this is thisEsriExtension
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:
FactoryException
- if an error occured.
-