org.geotools.referencing.factory
Class AllAuthoritiesFactory

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.AllAuthoritiesFactory
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

public class AllAuthoritiesFactory
extends AbstractAuthorityFactory

An authority factory that delegates the object creation to an other factory determined from the authority name in the code. This factory requires that every codes given to a method are prefixed by the authority name, for example . This is different from using a factory from a known authority, in which case the authority part was optional (for example when using the EPSG authority factory, the part in is optional).

This class parses the authority name and delegates the work the corresponding factory. For example if any method in this class is invoked with a code starting by , then this class delegates the object creation to the authority factory provided by FactoryFinder.getCRSAuthorityFactory("EPSG", hints).

This class is not registered in FactoryFinder, because it is not a real authority factory. There is not a single authority name associated to this factory, but rather a set of names determined from all available authority factories. If this "authority" factory is wanted, then users need to refer explicitly to the DEFAULT constant or to create their own instance.

Since:
2.2
Version:
$Id: AllAuthoritiesFactory.java 18776 2006-03-22 11:36:21Z desruisseaux $
Author:
Martin Desruisseaux

Field Summary
static AllAuthoritiesFactory DEFAULT
          An instance of with the default name separator and no hints.
 
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
AllAuthoritiesFactory(Hints hints)
          Creates a new factory using the specified hints and the default name separator.
AllAuthoritiesFactory(Hints hints, java.util.Collection factories)
          Creates a new factory using the specified hints and a set of user factories.
AllAuthoritiesFactory(Hints hints, java.util.Collection factories, char separator)
          Creates a new factory using the specified hints, user factories and name separator.
 
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.
 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.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.
 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 codes of the given type.
 org.opengis.util.InternationalString getDescriptionText(java.lang.String code)
          Gets a description of the object corresponding to a code.
 
Methods inherited from class org.geotools.referencing.factory.AbstractAuthorityFactory
createExtent, createOperationMethod, createParameterDescriptor, dispose, getBackingStoreDescription, getImplementationHints, noSuchAuthorityCode, onRegistration, trimAuthority
 
Methods inherited from class org.geotools.referencing.factory.AbstractFactory
ensureNonNull, getVendor
 
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
 
Methods inherited from interface org.opengis.referencing.Factory
getVendor
 

Field Detail

DEFAULT

public static AllAuthoritiesFactory DEFAULT
An instance of with the default name separator and no hints.

Constructor Detail

AllAuthoritiesFactory

public AllAuthoritiesFactory(Hints hints)
Creates a new factory using the specified hints and the default name separator.

Parameters:
hints - An optional set of hints, or if none.

AllAuthoritiesFactory

public AllAuthoritiesFactory(Hints hints,
                             java.util.Collection factories)
Creates a new factory using the specified hints and a set of user factories. If is not null, then any call to a method will first scan the supplied factories in their iteration order. The first factory implementing the appropriate interface and having the expected authority name will be used. Only if no suitable factory is found, then this class delegates to FactoryFinder.

Parameters:
hints - An optional set of hints, or if none.
factories - A set of user-specified factories to try before to delegate to FactoryFinder, or if none.

AllAuthoritiesFactory

public AllAuthoritiesFactory(Hints hints,
                             java.util.Collection factories,
                             char separator)
Creates a new factory using the specified hints, user factories and name separator.

Parameters:
hints - An optional set of hints, or if none.
factories - A set of user-specified factories to try before to delegate to FactoryFinder, or if none.
separator - The separator between the authority name and the code.
Method Detail

getAuthority

public org.opengis.metadata.citation.Citation getAuthority()
Returns the organization or party responsible for definition and maintenance of the database. The default implementation returns a citation named "All".

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 codes of the given type.

Parameters:
type - The spatial reference objects type (may be ).
Returns:
The set of authority codes for spatial reference objects of the given type. If this factory doesn't contains any object of the given type, then this method returns an empty set.
Throws:
org.opengis.referencing.FactoryException - if access to the underlying database failed.

getDescriptionText

public org.opengis.util.InternationalString getDescriptionText(java.lang.String code)
                                                        throws org.opengis.referencing.FactoryException
Gets a description of the object corresponding to a code.

Parameters:
code - Value allocated by authority.
Returns:
A description of the object, or if the object corresponding to the specified has no description.
Throws:
org.opengis.referencing.NoSuchAuthorityCodeException - if the specified was not found.
org.opengis.referencing.FactoryException - if the query failed for some other reason.

createObject

public org.opengis.referencing.IdentifiedObject createObject(java.lang.String code)
                                                      throws org.opengis.referencing.FactoryException
Returns an arbitrary object from a code.

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:
createCoordinateReferenceSystem(java.lang.String), createDatum(java.lang.String), createEllipsoid(java.lang.String), 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.

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:
createGeodeticDatum(java.lang.String), createVerticalDatum(java.lang.String), 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.

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

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

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

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

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:
createEllipsoid(java.lang.String), createPrimeMeridian(java.lang.String), createGeographicCRS(java.lang.String), 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.

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

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:
createGeodeticDatum(java.lang.String)

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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:
createGeographicCRS(java.lang.String), createProjectedCRS(java.lang.String), createVerticalCRS(java.lang.String), createTemporalCRS(java.lang.String), 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.

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.

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.

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.

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

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

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.

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

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

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:
createVerticalDatum(java.lang.String)

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.

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.

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.


Copyright © GeoTools. All Rights Reserved.