org.geotools.referencing.factory.wms
Class AutoCRSFactory

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.DirectAuthorityFactory
                  extended by org.geotools.referencing.factory.wms.AutoCRSFactory
All Implemented Interfaces:
javax.imageio.spi.RegisterableService, Factory, org.opengis.referencing.AuthorityFactory, org.opengis.referencing.crs.CRSAuthorityFactory

Deprecated. This class will move in a org.geotools.referencing.factory.web package in a future Geotools version, in order to put together other web-related factories defined outside the WMS specification. Don't use this class directly. You should not need to anyway - use ReferencingFactoryFinder instead, which will continue to work no matter where this class is located.

public class AutoCRSFactory
extends DirectAuthorityFactory
implements org.opengis.referencing.crs.CRSAuthorityFactory

The factory for projected CRS in the AUTO and AUTO2 space.

Since:
2.2
Version:
$Id: AutoCRSFactory.java 34859 2010-02-03 19:30:23Z aaime $
Author:
Jody Garnett, Rueben Schulz, Martin Desruisseaux

Field Summary
 
Fields inherited from class org.geotools.referencing.factory.DirectAuthorityFactory
factories
 
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
AutoCRSFactory()
          Deprecated. Constructs a default factory for the AUTO authority.
AutoCRSFactory(Hints hints)
          Deprecated. Constructs a factory for the AUTO authority using the specified hints.
 
Method Summary
 org.opengis.referencing.crs.CoordinateReferenceSystem createCoordinateReferenceSystem(java.lang.String code)
          Deprecated. Creates a coordinate reference system from the specified code.
 org.opengis.referencing.IdentifiedObject createObject(java.lang.String code)
          Deprecated. Creates an object from the specified code.
 org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.lang.String code)
          Deprecated. Creates a projected coordinate reference system from the specified code.
 org.opengis.metadata.citation.Citation getAuthority()
          Deprecated. Returns the authority for this factory.
 java.util.Set getAuthorityCodes(java.lang.Class type)
          Deprecated. Provides a complete set of the known codes provided by this authority.
 org.opengis.util.InternationalString getDescriptionText(java.lang.String code)
          Deprecated. Returns the CRS name for the given code.
 
Methods inherited from class org.geotools.referencing.factory.DirectAuthorityFactory
getImplementationHints
 
Methods inherited from class org.geotools.referencing.factory.AbstractAuthorityFactory
createCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createExtent, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createOperationMethod, createParameterDescriptor, createPolarCS, createPrimeMeridian, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, dispose, getBackingStoreDescription, getIdentifiedObjectFinder, noSuchAuthorityCode, trimAuthority
 
Methods inherited from class org.geotools.referencing.factory.ReferencingFactory
ensureNonNull, getVendor
 
Methods inherited from class org.geotools.factory.AbstractFactory
addImplementationHints, equals, 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, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createTemporalCRS, createVerticalCRS
 
Methods inherited from interface org.opengis.referencing.Factory
getVendor
 

Constructor Detail

AutoCRSFactory

public AutoCRSFactory()
Deprecated. 
Constructs a default factory for the AUTO authority.


AutoCRSFactory

public AutoCRSFactory(Hints hints)
Deprecated. 
Constructs a factory for the AUTO authority using the specified hints.

Method Detail

getAuthority

public org.opengis.metadata.citation.Citation getAuthority()
Deprecated. 
Returns the authority for this factory.

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
Deprecated. 
Provides a complete set of the known codes provided by this authority. The returned set contains only numeric identifiers like "42001", "42002", etc. The authority name ("AUTO") and the lon0,lat0 part are not included. This is consistent with the codes returned by the EPSG factory and avoid duplication, since the authority is the same for every codes returned by this factory. It also make it easier for clients to prepend whatever authority name they wish, as for example in the all authorities factory.

Specified by:
getAuthorityCodes in interface org.opengis.referencing.AuthorityFactory
Throws:
org.opengis.referencing.FactoryException

getDescriptionText

public org.opengis.util.InternationalString getDescriptionText(java.lang.String code)
                                                        throws org.opengis.referencing.FactoryException
Deprecated. 
Returns the CRS name for the given code.

Specified by:
getDescriptionText in interface org.opengis.referencing.AuthorityFactory
Throws:
org.opengis.referencing.FactoryException

createObject

public org.opengis.referencing.IdentifiedObject createObject(java.lang.String code)
                                                      throws org.opengis.referencing.FactoryException
Deprecated. 
Creates an object from the specified code. The default implementation delegates to createCoordinateReferenceSystem(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.NoSuchAuthorityCodeException - if the specified code was not found.
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)

createCoordinateReferenceSystem

public org.opengis.referencing.crs.CoordinateReferenceSystem createCoordinateReferenceSystem(java.lang.String code)
                                                                                      throws org.opengis.referencing.FactoryException
Deprecated. 
Creates a coordinate reference system from the specified code. The default implementation delegates to createProjectedCRS(code).

Specified by:
createCoordinateReferenceSystem in interface org.opengis.referencing.crs.CRSAuthorityFactory
Overrides:
createCoordinateReferenceSystem in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Returns:
The coordinate reference system for the given code.
Throws:
org.opengis.referencing.NoSuchAuthorityCodeException - if the specified code was not found.
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)

createProjectedCRS

public org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.lang.String code)
                                                            throws org.opengis.referencing.FactoryException
Deprecated. 
Creates a projected coordinate reference system from the specified code.

Specified by:
createProjectedCRS in interface org.opengis.referencing.crs.CRSAuthorityFactory
Overrides:
createProjectedCRS in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Returns:
The coordinate reference system for the given code.
Throws:
org.opengis.referencing.NoSuchAuthorityCodeException - if the specified code was not found.
org.opengis.referencing.FactoryException - if the object creation failed for some other reason.
See Also:
AbstractAuthorityFactory.createGeodeticDatum(java.lang.String)


Copyright © 1996-2010 Geotools. All Rights Reserved.