org.geotools.referencing.factory.epsg
Class UnnamedExtension

java.lang.Object
  extended by org.geotools.factory.AbstractFactory
      extended by org.geotools.referencing.factory.ReferencingFactory
          extended by org.geotools.referencing.factory.AbstractAuthorityFactory
              extended by org.geotools.referencing.factory.BufferedAuthorityFactory
                  extended by org.geotools.referencing.factory.DeferredAuthorityFactory
                      extended by org.geotools.referencing.factory.epsg.FactoryUsingWKT
                          extended by org.geotools.referencing.factory.epsg.UnnamedExtension
All Implemented Interfaces:
javax.imageio.spi.RegisterableService, BufferedFactory, Factory, OptionalFactory, org.opengis.referencing.AuthorityFactory, org.opengis.referencing.crs.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
Version:
$Id: UnnamedExtension.java 30656 2008-06-12 20:32:50Z acuster $
Author:
Andrea Aime

Field Summary
static java.lang.String FILENAME
          The default filename to read.
 
Fields inherited from class org.geotools.referencing.factory.epsg.FactoryUsingWKT
DEFAULT_PRIORITY
 
Fields inherited from class org.geotools.referencing.factory.ReferencingFactory
LOGGER
 
Fields inherited from class org.geotools.factory.AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
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  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.epsg.FactoryUsingWKT
createBackingStore, getAuthorities, getAuthority, reportDuplicatedCodes, reportInstantiationFailures
 
Methods inherited from class org.geotools.referencing.factory.DeferredAuthorityFactory
canDisposeBackingStore, dispose, exit, isAvailable, isConnected, setTimeout
 
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 org.geotools.referencing.factory.AbstractAuthorityFactory
noSuchAuthorityCode, trimAuthority
 
Methods inherited from class org.geotools.referencing.factory.ReferencingFactory
ensureNonNull
 
Methods inherited from class org.geotools.factory.AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
 
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
 
Methods inherited from interface org.geotools.factory.Factory
getImplementationHints
 

Field Detail

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
Constructor Detail

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.

Method Detail

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 "unnamed.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 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:

-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:
org.opengis.referencing.FactoryException - if an error occured.


Copyright © 1996-2010 Geotools. All Rights Reserved.