Class UnnamedExtension
- All Implemented Interfaces:
AuthorityFactory,CRSAuthorityFactory,Factory,BufferedFactory,Factory,OptionalFactory,RegistrableFactory
Provides common Coordinate Reference Systems not found in the standard EPSG
database. Those CRS will be registered in
"EPSG" name space.- Since:
- 2.4
- Author:
- Andrea Aime
-
Field Summary
FieldsFields inherited from class FactoryUsingWKT
DEFAULT_PRIORITYFields inherited from class ReferencingFactory
LOGGERFields inherited from class AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an authority factory using the default set of factories.UnnamedExtension(Hints hints) Constructs an authority factory using a set of factories created from the specified hints. -
Method Summary
Modifier and TypeMethodDescriptionprotected URLReturns the URL to the property file that contains CRS definitions.static voidPrints a list of codes that duplicate the ones provided in the default factory.Methods inherited from class FactoryUsingWKT
createBackingStore, getAuthorities, getAuthority, getFactory, main, reportDuplicatedCodes, reportInstantiationFailuresMethods inherited from class DeferredAuthorityFactory
canDisposeBackingStore, dispose, disposeBackingStore, exit, getBackingStore, isAvailable, isConnected, setTimeoutMethods 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, getVendorMethods inherited from class AbstractAuthorityFactory
noSuchAuthorityCode, trimAuthorityMethods inherited from class ReferencingFactory
ensureNonNullMethods inherited from class AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toStringMethods inherited from interface AuthorityFactory
createObject, getAuthorityCodes, getDescriptionTextMethods inherited from interface CRSAuthorityFactory
createCompoundCRS, createCoordinateReferenceSystem, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRSMethods inherited from interface Factory
getImplementationHints
-
Field Details
-
FILENAME
The default filename to read. This file will be searched in theorg/geotools/referencing/factory/espgdirectory in the classpath or in a JAR file.- See Also:
-
-
Constructor Details
-
UnnamedExtension
public UnnamedExtension()Constructs an authority factory using the default set of factories. -
UnnamedExtension
Constructs an authority factory using a set of factories created from the specified hints. This constructor recognizes theCRS,CS,DATUMandMATH_TRANSFORMFACTORYhints.
-
-
Method Details
-
getDefinitionsURL
Returns the URL to the property file that contains CRS definitions. The default implementation returns the URL to the "unnamed.properties" file.- Overrides:
getDefinitionsURLin classFactoryUsingWKT- Returns:
- The URL, or
nullif 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 thisUnnamedExtensionclass backed by the "unnamed.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.
-