org.geotools.referencing.factory
Class AuthorityFactoryAdapter

java.lang.Object
  extended byorg.geotools.factory.AbstractFactory
      extended byorg.geotools.referencing.factory.AbstractFactory
          extended byorg.geotools.referencing.factory.AbstractAuthorityFactory
              extended byorg.geotools.referencing.factory.AuthorityFactoryAdapter
All Implemented Interfaces:
org.opengis.referencing.AuthorityFactory, org.opengis.referencing.operation.CoordinateOperationAuthorityFactory, org.opengis.referencing.crs.CRSAuthorityFactory, org.opengis.referencing.cs.CSAuthorityFactory, org.opengis.referencing.datum.DatumAuthorityFactory, Factory, org.opengis.referencing.Factory, javax.imageio.spi.RegisterableService
Direct Known Subclasses:
OrderedAxisAuthorityFactory

public class AuthorityFactoryAdapter
extends AbstractAuthorityFactory

An authority factory which delegates CRS, CS or datum objects creation to some other factory implementations. This adapter may be used as a bridge between different implementations that do not rely exclusively on GeoAPI interfaces (not recommanded, but this case happens sometime). This adapter may also be used when some slight changes to the created objects are desired.

This class provides a set of methods to be overriden by subclasses in order to replace some CRS, CS or datum objects by other ones. The replacement rules are determined by the subclass being used. For example the OrderedAxisAuthorityFactory subclass can replace coordinate systems using (latitude, longitude) axis order by coordinate systems using (longitude, latitude) axis order.

In the case that a method returns an object with a different structure than the original one (for example the axis order change described above), then this modified factory should not declares the same authority code than the original factory. For example an EPSG factory with all coordinate systems forced to (longitude, latitude) axis order is not an EPSG authority factory anymore.

Since:
2.2
Version:
$Id: AuthorityFactoryAdapter.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
To Do:
Use generic types for all methods when we will be allowed to compile for J2SE 1.5, and remove casts in all methods.

Field Summary
protected  org.opengis.referencing.crs.CRSAuthorityFactory crsFactory
          The underlying coordinate reference system authority factory.
protected  org.opengis.referencing.cs.CSAuthorityFactory csFactory
          The underlying coordinate system authority factory.
protected  org.opengis.referencing.datum.DatumAuthorityFactory datumFactory
          The underlying datum authority factory.
protected  org.opengis.referencing.operation.CoordinateOperationAuthorityFactory opFactory
          The underlying coordinate operation authority factory.
 
Fields inherited from class org.geotools.referencing.factory.AbstractAuthorityFactory
factories
 
Fields inherited from class org.geotools.referencing.factory.AbstractFactory
LOGGER
 
Fields inherited from class org.geotools.factory.AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
Constructor Summary
AuthorityFactoryAdapter(AbstractAuthorityFactory factory)
          Creates a wrapper around the specified factory.
AuthorityFactoryAdapter(org.opengis.referencing.crs.CRSAuthorityFactory crsFactory, org.opengis.referencing.cs.CSAuthorityFactory csFactory, org.opengis.referencing.datum.DatumAuthorityFactory datumFactory, org.opengis.referencing.operation.CoordinateOperationAuthorityFactory opFactory)
          Creates a wrapper around the specified factories.
AuthorityFactoryAdapter(java.lang.String authority, Hints hints)
          Creates a wrappers around the default factories for the specified authority.
 
Method Summary
 org.opengis.referencing.cs.CartesianCS createCartesianCS(java.lang.String code)
          Creates a cartesian coordinate system from a code.
 org.opengis.referencing.crs.CompoundCRS createCompoundCRS(java.lang.String code)
          Creates a 3D coordinate reference system from a code.
 org.opengis.referencing.operation.CoordinateOperation createCoordinateOperation(java.lang.String code)
          Creates an operation from a single operation code.
 org.opengis.referencing.crs.CoordinateReferenceSystem createCoordinateReferenceSystem(java.lang.String code)
          Returns an arbitrary coordinate reference system from a code.
 org.opengis.referencing.cs.CoordinateSystem createCoordinateSystem(java.lang.String code)
          Returns an arbitrary coordinate system from a code.
 org.opengis.referencing.cs.CoordinateSystemAxis createCoordinateSystemAxis(java.lang.String code)
          Returns a coordinate system axis from a code.
 org.opengis.referencing.cs.CylindricalCS createCylindricalCS(java.lang.String code)
          Creates a cylindrical coordinate system from a code.
 org.opengis.referencing.datum.Datum createDatum(java.lang.String code)
          Returns an arbitrary datum from a code.
 org.opengis.referencing.crs.DerivedCRS createDerivedCRS(java.lang.String code)
          Creates a derived coordinate reference system from a code.
 org.opengis.referencing.datum.Ellipsoid createEllipsoid(java.lang.String code)
          Returns an ellipsoid from a code.
 org.opengis.referencing.cs.EllipsoidalCS createEllipsoidalCS(java.lang.String code)
          Creates an ellipsoidal coordinate system from a code.
 org.opengis.referencing.crs.EngineeringCRS createEngineeringCRS(java.lang.String code)
          Creates a engineering coordinate reference system from a code.
 org.opengis.referencing.datum.EngineeringDatum createEngineeringDatum(java.lang.String code)
          Creates a engineering datum from a code.
 org.opengis.metadata.extent.Extent createExtent(java.lang.String code)
          Returns a extent (usually an area of validity) from a code.
 java.util.Set createFromCoordinateReferenceSystemCodes(java.lang.String sourceCode, java.lang.String targetCode)
          Creates an operation from coordinate reference system codes.
 org.opengis.referencing.crs.GeocentricCRS createGeocentricCRS(java.lang.String code)
          Returns a geocentric coordinate reference system from a code.
 org.opengis.referencing.datum.GeodeticDatum createGeodeticDatum(java.lang.String code)
          Returns a geodetic datum from a code.
 org.opengis.referencing.crs.GeographicCRS createGeographicCRS(java.lang.String code)
          Returns a geographic coordinate reference system from a code.
 org.opengis.referencing.crs.ImageCRS createImageCRS(java.lang.String code)
          Creates a image coordinate reference system from a code.
 org.opengis.referencing.datum.ImageDatum createImageDatum(java.lang.String code)
          Creates a image datum from a code.
 org.opengis.referencing.IdentifiedObject createObject(java.lang.String code)
          Returns an arbitrary object from a code.
 org.opengis.referencing.operation.OperationMethod createOperationMethod(java.lang.String code)
          Creates an operation method from a code.
 org.opengis.parameter.ParameterDescriptor createParameterDescriptor(java.lang.String code)
          Creates a parameter descriptor from a code.
 org.opengis.referencing.cs.PolarCS createPolarCS(java.lang.String code)
          Creates a polar coordinate system from a code.
 org.opengis.referencing.datum.PrimeMeridian createPrimeMeridian(java.lang.String code)
          Returns a prime meridian from a code.
 org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.lang.String code)
          Returns a projected coordinate reference system from a code.
 org.opengis.referencing.cs.SphericalCS createSphericalCS(java.lang.String code)
          Creates a spherical coordinate system from a code.
 org.opengis.referencing.crs.TemporalCRS createTemporalCRS(java.lang.String code)
          Creates a temporal coordinate reference system from a code.
 org.opengis.referencing.datum.TemporalDatum createTemporalDatum(java.lang.String code)
          Creates a temporal datum from a code.
 org.opengis.referencing.cs.TimeCS createTimeCS(java.lang.String code)
          Creates a temporal coordinate system from a code.
 javax.units.Unit createUnit(java.lang.String code)
          Returns an unit from a code.
 org.opengis.referencing.crs.VerticalCRS createVerticalCRS(java.lang.String code)
          Creates a vertical coordinate reference system from a code.
 org.opengis.referencing.cs.VerticalCS createVerticalCS(java.lang.String code)
          Creates a vertical coordinate system from a code.
 org.opengis.referencing.datum.VerticalDatum createVerticalDatum(java.lang.String code)
          Creates a vertical datum from a code.
 void dispose()
          Releases resources immediately instead of waiting for the garbage collector.
 org.opengis.metadata.citation.Citation getAuthority()
          Returns the organization or party responsible for definition and maintenance of the database.
 java.util.Set getAuthorityCodes(java.lang.Class type)
          Returns the set of authority code for the specified type.
 java.lang.String getBackingStoreDescription()
          Returns a description of the underlying backing store, or if unknow.
 org.opengis.util.InternationalString getDescriptionText(java.lang.String code)
          Returns a description for the object identified by the specified code.
 org.opengis.metadata.citation.Citation getVendor()
          Returns the vendor responsible for creating this factory implementation.
protected  org.opengis.referencing.operation.CoordinateOperation replace(org.opengis.referencing.operation.CoordinateOperation operation)
          Replaces (if needed) the specified coordinate operation.
protected  org.opengis.referencing.crs.CoordinateReferenceSystem replace(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
          Replaces (if needed) the specified coordinate reference system.
protected  org.opengis.referencing.cs.CoordinateSystem replace(org.opengis.referencing.cs.CoordinateSystem cs)
          Replaces (if needed) the specified coordinate system by a new one.
protected  org.opengis.referencing.datum.Datum replace(org.opengis.referencing.datum.Datum datum)
          Replaces (if needed) the specified datum by a new one.
 
Methods inherited from class org.geotools.referencing.factory.AbstractAuthorityFactory
getImplementationHints, noSuchAuthorityCode, onRegistration, trimAuthority
 
Methods inherited from class org.geotools.referencing.factory.AbstractFactory
ensureNonNull
 
Methods inherited from class org.geotools.factory.AbstractFactory
onDeregistration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datumFactory

protected final org.opengis.referencing.datum.DatumAuthorityFactory datumFactory
The underlying datum authority factory.


csFactory

protected final org.opengis.referencing.cs.CSAuthorityFactory csFactory
The underlying coordinate system authority factory.


crsFactory

protected final org.opengis.referencing.crs.CRSAuthorityFactory crsFactory
The underlying coordinate reference system authority factory.


opFactory

protected final org.opengis.referencing.operation.CoordinateOperationAuthorityFactory opFactory
The underlying coordinate operation authority factory.

Constructor Detail

AuthorityFactoryAdapter

public AuthorityFactoryAdapter(AbstractAuthorityFactory factory)
Creates a wrapper around the specified factory. The priority level will be equals to the specified factory's priority plus one.


AuthorityFactoryAdapter

public AuthorityFactoryAdapter(org.opengis.referencing.crs.CRSAuthorityFactory crsFactory,
                               org.opengis.referencing.cs.CSAuthorityFactory csFactory,
                               org.opengis.referencing.datum.DatumAuthorityFactory datumFactory,
                               org.opengis.referencing.operation.CoordinateOperationAuthorityFactory opFactory)
Creates a wrapper around the specified factories. The priority level will be equals to the highest specified factory's priority plus one.

Parameters:
crsFactory - The coordinate reference system authority factory.
csFactory - The coordinate system authority factory.
datumFactory - The datum authority factory.
opFactory - The coordinate operation authority factory.

AuthorityFactoryAdapter

public AuthorityFactoryAdapter(java.lang.String authority,
                               Hints hints)
                        throws FactoryRegistryException
Creates a wrappers around the default factories for the specified authority. The factories are fetched using FactoryFinder.

Parameters:
authority - The authority to wraps (example: ).
hints - An optional set of hints, or if none.
Throws:
FactoryRegistryException - if at least one factory can not be obtained.
Method Detail

replace

protected org.opengis.referencing.datum.Datum replace(org.opengis.referencing.datum.Datum datum)
                                               throws org.opengis.referencing.FactoryException
Replaces (if needed) the specified datum by a new one. The default implementation returns the datum unchanged. Subclasses should override this method if some datum replacements are desired.

Parameters:
datum - The datum to replace.
Returns:
The new datum, or if no change were needed.
Throws:
org.opengis.referencing.FactoryException - if an error occured while creating the new datum.

replace

protected org.opengis.referencing.cs.CoordinateSystem replace(org.opengis.referencing.cs.CoordinateSystem cs)
                                                       throws org.opengis.referencing.FactoryException
Replaces (if needed) the specified coordinate system by a new one. The default implementation returns the coordinate system unchanged. Subclasses should override this method if some coordinate system replacements are desired.

Parameters:
cs - The coordinate system to replace.
Returns:
A new coordinate system, or if no change were needed.
Throws:
org.opengis.referencing.FactoryException - if an error occured while creating the new coordinate system.

replace

protected org.opengis.referencing.crs.CoordinateReferenceSystem replace(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
                                                                 throws org.opengis.referencing.FactoryException
Replaces (if needed) the specified coordinate reference system. The default implementation checks if there is a datum replacement or a coordinate system replacement. If there is at least one of those, then this method returns a new coordinate reference system using the new datum and coordinate system.

Parameters:
crs - The coordinate reference system to replace.
Returns:
A new CRS, or if no change were needed.
Throws:
org.opengis.referencing.FactoryException - if an error occured while creating the new CRS object.

replace

protected org.opengis.referencing.operation.CoordinateOperation replace(org.opengis.referencing.operation.CoordinateOperation operation)
                                                                 throws org.opengis.referencing.FactoryException
Replaces (if needed) the specified coordinate operation. The default implementation checks if there is a source or target CRS replacement. If there is at least one of those, then this method returns a new coordinate operation using the new CRS.

Parameters:
operation - The coordinate operation to replace.
Returns:
A new operation, or if no change were needed.
Throws:
org.opengis.referencing.FactoryException - if an error occured while creating the new operation object.

getBackingStoreDescription

public java.lang.String getBackingStoreDescription()
                                            throws org.opengis.referencing.FactoryException
Returns a description of the underlying backing store, or if unknow.

Overrides:
getBackingStoreDescription in class AbstractAuthorityFactory
Throws:
org.opengis.referencing.FactoryException - if a failure occured while fetching the engine description.

getVendor

public org.opengis.metadata.citation.Citation getVendor()
Returns the vendor responsible for creating this factory implementation. The default implementation delegates to the underlying CRS factory with no change.

Specified by:
getVendor in interface org.opengis.referencing.Factory
Overrides:
getVendor in class AbstractFactory
Returns:
The vendor for this factory implementation.

getAuthority

public org.opengis.metadata.citation.Citation getAuthority()
Returns the organization or party responsible for definition and maintenance of the database. The default implementation delegates to the underlying CRS factory with no change. Subclasses should override this method if at least one methods performs a structural change, for example changing axis order from (latitude, longitude) to (longitude, latitude).

Specified by:
getAuthority in interface org.opengis.referencing.AuthorityFactory
Specified by:
getAuthority in class AbstractAuthorityFactory

getAuthorityCodes

public java.util.Set getAuthorityCodes(java.lang.Class type)
                                throws org.opengis.referencing.FactoryException
Returns the set of authority code for the specified type. The default implementation delegates to the underlying CRS factory with no change.

Throws:
org.opengis.referencing.FactoryException

getDescriptionText

public org.opengis.util.InternationalString getDescriptionText(java.lang.String code)
                                                        throws org.opengis.referencing.FactoryException
Returns a description for the object identified by the specified code. The default implementation delegates to the underlying CRS factory with no change.

Throws:
org.opengis.referencing.FactoryException

createObject

public org.opengis.referencing.IdentifiedObject createObject(java.lang.String code)
                                                      throws org.opengis.referencing.FactoryException
Returns an arbitrary object from a code. The default implementation first creates an object using the underlying CRS factory, and then modifies it using one of the methods, if applicable.

Specified by:
createObject in interface org.opengis.referencing.AuthorityFactory
Overrides:
createObject in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createCoordinateReferenceSystem(java.lang.String), AbstractAuthorityFactory.createDatum(java.lang.String), AbstractAuthorityFactory.createEllipsoid(java.lang.String), AbstractAuthorityFactory.createUnit(java.lang.String)

createDatum

public org.opengis.referencing.datum.Datum createDatum(java.lang.String code)
                                                throws org.opengis.referencing.FactoryException
Returns an arbitrary datum from a code. The default implementation first invokes the same method from the underlying datum factory, and next invokes replace.

Specified by:
createDatum in interface org.opengis.referencing.datum.DatumAuthorityFactory
Overrides:
createDatum in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createGeodeticDatum(java.lang.String), AbstractAuthorityFactory.createVerticalDatum(java.lang.String), AbstractAuthorityFactory.createTemporalDatum(java.lang.String)

createEngineeringDatum

public org.opengis.referencing.datum.EngineeringDatum createEngineeringDatum(java.lang.String code)
                                                                      throws org.opengis.referencing.FactoryException
Creates a engineering datum from a code. The default implementation first invokes the same method from the underlying datum factory, and next invokes replace.

Specified by:
createEngineeringDatum in interface org.opengis.referencing.datum.DatumAuthorityFactory
Overrides:
createEngineeringDatum in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createEngineeringCRS(java.lang.String)

createImageDatum

public org.opengis.referencing.datum.ImageDatum createImageDatum(java.lang.String code)
                                                          throws org.opengis.referencing.FactoryException
Creates a image datum from a code. The default implementation first invokes the same method from the underlying datum factory, and next invokes replace.

Specified by:
createImageDatum in interface org.opengis.referencing.datum.DatumAuthorityFactory
Overrides:
createImageDatum in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createImageCRS(java.lang.String)

createVerticalDatum

public org.opengis.referencing.datum.VerticalDatum createVerticalDatum(java.lang.String code)
                                                                throws org.opengis.referencing.FactoryException
Creates a vertical datum from a code. The default implementation first invokes the same method from the underlying datum factory, and next invokes replace.

Specified by:
createVerticalDatum in interface org.opengis.referencing.datum.DatumAuthorityFactory
Overrides:
createVerticalDatum in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createVerticalCRS(java.lang.String)

createTemporalDatum

public org.opengis.referencing.datum.TemporalDatum createTemporalDatum(java.lang.String code)
                                                                throws org.opengis.referencing.FactoryException
Creates a temporal datum from a code. The default implementation first invokes the same method from the underlying datum factory, and next invokes replace.

Specified by:
createTemporalDatum in interface org.opengis.referencing.datum.DatumAuthorityFactory
Overrides:
createTemporalDatum in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createTemporalCRS(java.lang.String)

createGeodeticDatum

public org.opengis.referencing.datum.GeodeticDatum createGeodeticDatum(java.lang.String code)
                                                                throws org.opengis.referencing.FactoryException
Returns a geodetic datum from a code. The default implementation first invokes the same method from the underlying datum factory, and next invokes replace.

Specified by:
createGeodeticDatum in interface org.opengis.referencing.datum.DatumAuthorityFactory
Overrides:
createGeodeticDatum in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createEllipsoid(java.lang.String), AbstractAuthorityFactory.createPrimeMeridian(java.lang.String), AbstractAuthorityFactory.createGeographicCRS(java.lang.String), AbstractAuthorityFactory.createProjectedCRS(java.lang.String)

createEllipsoid

public org.opengis.referencing.datum.Ellipsoid createEllipsoid(java.lang.String code)
                                                        throws org.opengis.referencing.FactoryException
Returns an ellipsoid from a code. The default implementation delegates to the underlying datum factory with no change.

Specified by:
createEllipsoid in interface org.opengis.referencing.datum.DatumAuthorityFactory
Overrides:
createEllipsoid in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createGeodeticDatum(java.lang.String)

createPrimeMeridian

public org.opengis.referencing.datum.PrimeMeridian createPrimeMeridian(java.lang.String code)
                                                                throws org.opengis.referencing.FactoryException
Returns a prime meridian from a code. The default implementation delegates to the underlying datum factory with no change.

Specified by:
createPrimeMeridian in interface org.opengis.referencing.datum.DatumAuthorityFactory
Overrides:
createPrimeMeridian in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createGeodeticDatum(java.lang.String)

createExtent

public org.opengis.metadata.extent.Extent createExtent(java.lang.String code)
                                                throws org.opengis.referencing.FactoryException
Returns a extent (usually an area of validity) from a code. The default implementation delegates to the underlying CRS factory with no change.

Overrides:
createExtent in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createCoordinateSystem

public org.opengis.referencing.cs.CoordinateSystem createCoordinateSystem(java.lang.String code)
                                                                   throws org.opengis.referencing.FactoryException
Returns an arbitrary coordinate system from a code. The default implementation first invokes the same method from the underlying CS factory, and next invokes replace.

Specified by:
createCoordinateSystem in interface org.opengis.referencing.cs.CSAuthorityFactory
Overrides:
createCoordinateSystem in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createCartesianCS

public org.opengis.referencing.cs.CartesianCS createCartesianCS(java.lang.String code)
                                                         throws org.opengis.referencing.FactoryException
Creates a cartesian coordinate system from a code. The default implementation first invokes the same method from the underlying CS factory, and next invokes replace.

Specified by:
createCartesianCS in interface org.opengis.referencing.cs.CSAuthorityFactory
Overrides:
createCartesianCS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createPolarCS

public org.opengis.referencing.cs.PolarCS createPolarCS(java.lang.String code)
                                                 throws org.opengis.referencing.FactoryException
Creates a polar coordinate system from a code. The default implementation first invokes the same method from the underlying CS factory, and next invokes replace.

Specified by:
createPolarCS in interface org.opengis.referencing.cs.CSAuthorityFactory
Overrides:
createPolarCS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createCylindricalCS

public org.opengis.referencing.cs.CylindricalCS createCylindricalCS(java.lang.String code)
                                                             throws org.opengis.referencing.FactoryException
Creates a cylindrical coordinate system from a code. The default implementation first invokes the same method from the underlying CS factory, and next invokes replace.

Specified by:
createCylindricalCS in interface org.opengis.referencing.cs.CSAuthorityFactory
Overrides:
createCylindricalCS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createSphericalCS

public org.opengis.referencing.cs.SphericalCS createSphericalCS(java.lang.String code)
                                                         throws org.opengis.referencing.FactoryException
Creates a spherical coordinate system from a code. The default implementation first invokes the same method from the underlying CS factory, and next invokes replace.

Specified by:
createSphericalCS in interface org.opengis.referencing.cs.CSAuthorityFactory
Overrides:
createSphericalCS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createEllipsoidalCS

public org.opengis.referencing.cs.EllipsoidalCS createEllipsoidalCS(java.lang.String code)
                                                             throws org.opengis.referencing.FactoryException
Creates an ellipsoidal coordinate system from a code. The default implementation first invokes the same method from the underlying CS factory, and next invokes replace.

Specified by:
createEllipsoidalCS in interface org.opengis.referencing.cs.CSAuthorityFactory
Overrides:
createEllipsoidalCS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createVerticalCS

public org.opengis.referencing.cs.VerticalCS createVerticalCS(java.lang.String code)
                                                       throws org.opengis.referencing.FactoryException
Creates a vertical coordinate system from a code. The default implementation first invokes the same method from the underlying CS factory, and next invokes replace.

Specified by:
createVerticalCS in interface org.opengis.referencing.cs.CSAuthorityFactory
Overrides:
createVerticalCS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createTimeCS

public org.opengis.referencing.cs.TimeCS createTimeCS(java.lang.String code)
                                               throws org.opengis.referencing.FactoryException
Creates a temporal coordinate system from a code. The default implementation first invokes the same method from the underlying CS factory, and next invokes replace.

Specified by:
createTimeCS in interface org.opengis.referencing.cs.CSAuthorityFactory
Overrides:
createTimeCS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createCoordinateSystemAxis

public org.opengis.referencing.cs.CoordinateSystemAxis createCoordinateSystemAxis(java.lang.String code)
                                                                           throws org.opengis.referencing.FactoryException
Returns a coordinate system axis from a code. The default implementation delegates to the underlying CS factory with no change.

Specified by:
createCoordinateSystemAxis in interface org.opengis.referencing.cs.CSAuthorityFactory
Overrides:
createCoordinateSystemAxis in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createUnit

public javax.units.Unit createUnit(java.lang.String code)
                            throws org.opengis.referencing.FactoryException
Returns an unit from a code. The default implementation delegates to the underlying CS factory with no change.

Specified by:
createUnit in interface org.opengis.referencing.cs.CSAuthorityFactory
Overrides:
createUnit in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createCoordinateReferenceSystem

public org.opengis.referencing.crs.CoordinateReferenceSystem createCoordinateReferenceSystem(java.lang.String code)
                                                                                      throws org.opengis.referencing.FactoryException
Returns an arbitrary coordinate reference system from a code. The default implementation first invokes the same method from the underlying CRS factory, and next invokes replace.

Specified by:
createCoordinateReferenceSystem in interface org.opengis.referencing.crs.CRSAuthorityFactory
Overrides:
createCoordinateReferenceSystem in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createGeographicCRS(java.lang.String), AbstractAuthorityFactory.createProjectedCRS(java.lang.String), AbstractAuthorityFactory.createVerticalCRS(java.lang.String), AbstractAuthorityFactory.createTemporalCRS(java.lang.String), AbstractAuthorityFactory.createCompoundCRS(java.lang.String)

createCompoundCRS

public org.opengis.referencing.crs.CompoundCRS createCompoundCRS(java.lang.String code)
                                                          throws org.opengis.referencing.FactoryException
Creates a 3D coordinate reference system from a code. The default implementation first invokes the same method from the underlying CRS factory, and next invokes replace.

Specified by:
createCompoundCRS in interface org.opengis.referencing.crs.CRSAuthorityFactory
Overrides:
createCompoundCRS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createDerivedCRS

public org.opengis.referencing.crs.DerivedCRS createDerivedCRS(java.lang.String code)
                                                        throws org.opengis.referencing.FactoryException
Creates a derived coordinate reference system from a code. The default implementation first invokes the same method from the underlying CRS factory, and next invokes replace.

Specified by:
createDerivedCRS in interface org.opengis.referencing.crs.CRSAuthorityFactory
Overrides:
createDerivedCRS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createEngineeringCRS

public org.opengis.referencing.crs.EngineeringCRS createEngineeringCRS(java.lang.String code)
                                                                throws org.opengis.referencing.FactoryException
Creates a engineering coordinate reference system from a code. The default implementation first invokes the same method from the underlying CRS factory, and next invokes replace.

Specified by:
createEngineeringCRS in interface org.opengis.referencing.crs.CRSAuthorityFactory
Overrides:
createEngineeringCRS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createGeographicCRS

public org.opengis.referencing.crs.GeographicCRS createGeographicCRS(java.lang.String code)
                                                              throws org.opengis.referencing.FactoryException
Returns a geographic coordinate reference system from a code. The default implementation first invokes the same method from the underlying CRS factory, and next invokes replace.

Specified by:
createGeographicCRS in interface org.opengis.referencing.crs.CRSAuthorityFactory
Overrides:
createGeographicCRS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createGeodeticDatum(java.lang.String)

createGeocentricCRS

public org.opengis.referencing.crs.GeocentricCRS createGeocentricCRS(java.lang.String code)
                                                              throws org.opengis.referencing.FactoryException
Returns a geocentric coordinate reference system from a code. The default implementation first invokes the same method from the underlying CRS factory, and next invokes replace.

Specified by:
createGeocentricCRS in interface org.opengis.referencing.crs.CRSAuthorityFactory
Overrides:
createGeocentricCRS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.
See Also:
AbstractAuthorityFactory.createGeodeticDatum(java.lang.String)

createImageCRS

public org.opengis.referencing.crs.ImageCRS createImageCRS(java.lang.String code)
                                                    throws org.opengis.referencing.FactoryException
Creates a image coordinate reference system from a code. The default implementation first invokes the same method from the underlying CRS factory, and next invokes replace.

Specified by:
createImageCRS in interface org.opengis.referencing.crs.CRSAuthorityFactory
Overrides:
createImageCRS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createProjectedCRS

public org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.lang.String code)
                                                            throws org.opengis.referencing.FactoryException
Returns a projected coordinate reference system from a code. The default implementation first invokes the same method from the underlying CRS factory, and next invokes replace.

Specified by:
createProjectedCRS in interface org.opengis.referencing.crs.CRSAuthorityFactory
Overrides:
createProjectedCRS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createGeodeticDatum(java.lang.String)

createTemporalCRS

public org.opengis.referencing.crs.TemporalCRS createTemporalCRS(java.lang.String code)
                                                          throws org.opengis.referencing.FactoryException
Creates a temporal coordinate reference system from a code. The default implementation first invokes the same method from the underlying CRS factory, and next invokes replace.

Specified by:
createTemporalCRS in interface org.opengis.referencing.crs.CRSAuthorityFactory
Overrides:
createTemporalCRS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createTemporalDatum(java.lang.String)

createVerticalCRS

public org.opengis.referencing.crs.VerticalCRS createVerticalCRS(java.lang.String code)
                                                          throws org.opengis.referencing.FactoryException
Creates a vertical coordinate reference system from a code. The default implementation first invokes the same method from the underlying CRS factory, and next invokes replace.

Specified by:
createVerticalCRS in interface org.opengis.referencing.crs.CRSAuthorityFactory
Overrides:
createVerticalCRS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createVerticalDatum(java.lang.String)

createParameterDescriptor

public org.opengis.parameter.ParameterDescriptor createParameterDescriptor(java.lang.String code)
                                                                    throws org.opengis.referencing.FactoryException
Creates a parameter descriptor from a code. The default implementation delegates to the underlying operation factory with no change.

Overrides:
createParameterDescriptor in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createOperationMethod

public org.opengis.referencing.operation.OperationMethod createOperationMethod(java.lang.String code)
                                                                        throws org.opengis.referencing.FactoryException
Creates an operation method from a code. The default implementation delegates to the underlying operation factory with no change.

Overrides:
createOperationMethod in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createCoordinateOperation

public org.opengis.referencing.operation.CoordinateOperation createCoordinateOperation(java.lang.String code)
                                                                                throws org.opengis.referencing.FactoryException
Creates an operation from a single operation code. The default implementation first invokes the same method from the underlying operation factory, and next invokes replace.

Specified by:
createCoordinateOperation in interface org.opengis.referencing.operation.CoordinateOperationAuthorityFactory
Overrides:
createCoordinateOperation in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

createFromCoordinateReferenceSystemCodes

public java.util.Set createFromCoordinateReferenceSystemCodes(java.lang.String sourceCode,
                                                              java.lang.String targetCode)
                                                       throws org.opengis.referencing.FactoryException
Creates an operation from coordinate reference system codes. The default implementation first invokes the same method from the underlying operation factory, and next invokes replace for each operations.

Specified by:
createFromCoordinateReferenceSystemCodes in interface org.opengis.referencing.operation.CoordinateOperationAuthorityFactory
Overrides:
createFromCoordinateReferenceSystemCodes in class AbstractAuthorityFactory
Parameters:
sourceCode - Coded value of source coordinate reference system.
targetCode - Coded value of target coordinate reference system.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.

dispose

public void dispose()
             throws org.opengis.referencing.FactoryException
Releases resources immediately instead of waiting for the garbage collector.

Overrides:
dispose in class AbstractAuthorityFactory
Throws:
org.opengis.referencing.FactoryException - if an error occured while disposing the factory.


Copyright © GeoTools. All Rights Reserved.