org.geotools.referencing.factory.wms
Class WebCRSFactory

Object
  extended by AbstractFactory
      extended by ReferencingFactory
          extended by AbstractAuthorityFactory
              extended by DirectAuthorityFactory
                  extended by WebCRSFactory
All Implemented Interfaces:
RegisterableService, Factory, AuthorityFactory, 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 WebCRSFactory
extends DirectAuthorityFactory
implements CRSAuthorityFactory

The factory for coordinate reference systems in the CRS space.

Since:
2.2
Author:
Martin Desruisseaux
Module:
modules/library/referencing (gt-referencing.jar)

Field Summary
 
Fields inherited from class DirectAuthorityFactory
factories
 
Fields inherited from class ReferencingFactory
LOGGER
 
Fields inherited from class AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
Constructor Summary
WebCRSFactory()
          Deprecated. Constructs a default factory for the CRS authority.
WebCRSFactory(Hints hints)
          Deprecated. Constructs a factory for the CRS authority using the specified hints.
 
Method Summary
 CoordinateReferenceSystem createCoordinateReferenceSystem(String code)
          Deprecated. Creates a coordinate reference system from the specified code.
 IdentifiedObject createObject(String code)
          Deprecated. Creates an object from the specified code.
 Citation getAuthority()
          Deprecated. Returns the authority for this factory, which is CRS.
 Set getAuthorityCodes(Class type)
          Deprecated. Provides a complete set of the known codes provided by this authority.
 InternationalString getDescriptionText(String code)
          Deprecated. Returns the CRS name for the given code.
 
Methods inherited from class DirectAuthorityFactory
getImplementationHints
 
Methods inherited from class AbstractAuthorityFactory
createCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createExtent, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createOperationMethod, createParameterDescriptor, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, dispose, getBackingStoreDescription, getIdentifiedObjectFinder, noSuchAuthorityCode, trimAuthority
 
Methods inherited from class ReferencingFactory
ensureNonNull, getVendor
 
Methods inherited from class AbstractFactory
addImplementationHints, equals, getPriority, hashCode, onDeregistration, onRegistration, toString
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface CRSAuthorityFactory
createCompoundCRS, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRS
 
Methods inherited from interface Factory
getVendor
 

Constructor Detail

WebCRSFactory

public WebCRSFactory()
Deprecated. 
Constructs a default factory for the CRS authority.


WebCRSFactory

public WebCRSFactory(Hints hints)
Deprecated. 
Constructs a factory for the CRS authority using the specified hints.

Method Detail

getAuthority

public Citation getAuthority()
Deprecated. 
Returns the authority for this factory, which is CRS.

Specified by:
getAuthority in interface AuthorityFactory
Specified by:
getAuthority in class AbstractAuthorityFactory

getAuthorityCodes

public Set getAuthorityCodes(Class type)
                      throws FactoryException
Deprecated. 
Provides a complete set of the known codes provided by this authority. The returned set contains only numeric identifiers like "84", "27", etc. The authority name ("CRS") is 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 AuthorityFactory
Throws:
FactoryException

getDescriptionText

public InternationalString getDescriptionText(String code)
                                       throws FactoryException
Deprecated. 
Returns the CRS name for the given code.

Specified by:
getDescriptionText in interface AuthorityFactory
Throws:
FactoryException

createObject

public IdentifiedObject createObject(String code)
                              throws FactoryException
Deprecated. 
Creates an object from the specified code. The default implementation delegates to createCoordinateReferenceSystem(code).

Specified by:
createObject in interface AuthorityFactory
Overrides:
createObject in class AbstractAuthorityFactory
Parameters:
code - Value allocated by authority.
Throws:
NoSuchAuthorityCodeException - if the specified code was not found.
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 CoordinateReferenceSystem createCoordinateReferenceSystem(String code)
                                                          throws FactoryException
Deprecated. 
Creates a coordinate reference system from the specified code.

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


Copyright © 1996-2010 Geotools. All Rights Reserved.