org.geotools.referencing.factory.epsg
Class UnnamedExtension
Object
AbstractFactory
ReferencingFactory
AbstractAuthorityFactory
BufferedAuthorityFactory
DeferredAuthorityFactory
FactoryUsingWKT
UnnamedExtension
- All Implemented Interfaces:
- RegisterableService, BufferedFactory, Factory, OptionalFactory, AuthorityFactory, CRSAuthorityFactory
public class UnnamedExtension
- extends FactoryUsingWKT
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
- Module:
modules/plugin/epsg-extension (gt-epsg-extension.jar)
Constructor Summary |
UnnamedExtension()
Constructs 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 |
protected URL |
getDefinitionsURL()
Returns the URL to the property file that contains CRS definitions. |
static void |
main(String[] args)
Prints a list of codes that duplicate the ones provided in the DefaultFactory . |
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 |
FILENAME
public static final 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
UnnamedExtension
public UnnamedExtension()
- Constructs an authority factory using the default set of factories.
UnnamedExtension
public UnnamedExtension(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.
getDefinitionsURL
protected URL getDefinitionsURL()
- Returns the URL to the property file that contains CRS definitions.
The default implementation returns the URL to the "unnamed.properties" file.
- Overrides:
getDefinitionsURL
in class FactoryUsingWKT
- Returns:
- The URL, or
null
if none.
main
public static void main(String[] args)
throws 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 UnnamedExtension
class 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:
-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.
Copyright © 1996-2010 Geotools. All Rights Reserved.