Java Doc for TransformedAuthorityFactory.java in  » GIS » GeoTools-2.4.1 » org » geotools » referencing » factory » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.referencing.factory 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.referencing.factory.ReferencingFactory
   org.geotools.referencing.factory.AbstractAuthorityFactory
      org.geotools.referencing.factory.AuthorityFactoryAdapter
         org.geotools.referencing.factory.TransformedAuthorityFactory

All known Subclasses:   org.geotools.referencing.factory.OrderedAxisAuthorityFactory,
TransformedAuthorityFactory
public class TransformedAuthorityFactory extends AuthorityFactoryAdapter (Code)
An authority factory which returns modified , or objects from other factory implementations. This class provides a set of replace(...) methods to be overridden by subclasses in order to replace some , or objects by other ones. The replacement rules are determined by the subclass being used. For example the OrderedAxisAuthorityFactory subclass can replace using (latitude, longitude) axis order by coordinate systems using (longitude, latitude) axis order.

All constructors are protected because this class must be subclassed in order to determine which of the DatumAuthorityFactory , CSAuthorityFactory and CRSAuthorityFactory interfaces to implement.
since:
   2.3
version:
   $Id: TransformedAuthorityFactory.java 25972 2007-06-21 13:38:35Z desruisseaux $
author:
   Martin Desruisseaux replace(...) createXXX(...)




Constructor Summary
protected  TransformedAuthorityFactory(AuthorityFactory factory)
     Creates a wrapper around the specified factory.
protected  TransformedAuthorityFactory(CRSAuthorityFactory crsFactory, CSAuthorityFactory csFactory, DatumAuthorityFactory datumFactory, CoordinateOperationAuthorityFactory opFactory)
     Creates a wrapper around the specified factories.
protected  TransformedAuthorityFactory(String authority, Hints userHints)
     Creates a wrappers around the default factories for the specified authority.

Method Summary
public  SetcreateFromCoordinateReferenceSystemCodes(String sourceCode, String targetCode)
     Creates an operation from coordinate reference system codes.
public synchronized  voiddispose()
     Releases resources immediately instead of waiting for the garbage collector.
public  intgetPriority()
     Returns the priority for this factory.
protected  Unitreplace(Unit units)
     Replaces the specified unit, if applicable.
protected  AxisDirectionreplace(AxisDirection direction)
     Replaces the specified direction, if applicable.
protected  CoordinateSystemAxisreplace(CoordinateSystemAxis axis)
     Replaces (if needed) the specified axis by a new one.
protected  CoordinateSystemreplace(CoordinateSystem cs)
     Replaces (if needed) the specified coordinate system by a new one.
protected  Datumreplace(Datum datum)
     Replaces (if needed) the specified datum by a new one.
protected  CoordinateReferenceSystemreplace(CoordinateReferenceSystem crs)
     Replaces (if needed) the specified coordinate reference system.
protected  CoordinateOperationreplace(CoordinateOperation operation)
     Replaces (if needed) the specified coordinate operation.


Constructor Detail
TransformedAuthorityFactory
protected TransformedAuthorityFactory(AuthorityFactory factory)(Code)
Creates a wrapper around the specified factory.
Parameters:
  factory - The factory to wrap.



TransformedAuthorityFactory
protected TransformedAuthorityFactory(CRSAuthorityFactory crsFactory, CSAuthorityFactory csFactory, DatumAuthorityFactory datumFactory, CoordinateOperationAuthorityFactory opFactory)(Code)
Creates a wrapper around the specified factories.
Parameters:
  crsFactory - The authority factory, or null .
Parameters:
  csFactory - The authorityfactory, or null .
Parameters:
  datumFactory - The authority factory, or null .
Parameters:
  opFactory - The authority factory, or null .



TransformedAuthorityFactory
protected TransformedAuthorityFactory(String authority, Hints userHints) throws FactoryRegistryException(Code)
Creates a wrappers around the default factories for the specified authority. The factories are fetched using ReferencingFactoryFinder .
Parameters:
  authority - The authority to wraps (example: "EPSG" ). If null ,then all authority factories must be explicitly specified in theset of hints.
Parameters:
  userHints - An optional set of hints, or null if none.
throws:
  FactoryRegistryException - if at least one factory can not be obtained.
since:
   2.4




Method Detail
createFromCoordinateReferenceSystemCodes
public Set createFromCoordinateReferenceSystemCodes(String sourceCode, String targetCode) throws FactoryException(Code)
Creates an operation from coordinate reference system codes. The default implementation first invokes the same method from the , and next invokes TransformedAuthorityFactory.replace(CoordinateOperation) replace for each operations.



dispose
public synchronized void dispose() throws FactoryException(Code)
Releases resources immediately instead of waiting for the garbage collector. This method do not dispose the resources of wrapped factories (e.g. TransformedAuthorityFactory.crsFactory crsFactory ), because they may still in use by other classes.



getPriority
public int getPriority()(Code)
Returns the priority for this factory. Priorities are used by ReferencingFactoryFinder for selecting a preferred factory when many are found for the same service. The default implementation returns + 1, which implies that this adapter has precedence over the wrapped factories. Subclasses should override this method if they want a different priority order for this instance.



replace
protected Unit replace(Unit units) throws FactoryException(Code)
Replaces the specified unit, if applicable. This method is invoked automatically by the TransformedAuthorityFactory.replace(CoordinateSystem) method. The default implementation returns the unit unchanged.
Parameters:
  units - The units to replace. The new units, or units if no change were needed.
throws:
  FactoryException - if an error occured while creating the new units.



replace
protected AxisDirection replace(AxisDirection direction) throws FactoryException(Code)
Replaces the specified direction, if applicable. This method is invoked automatically by the TransformedAuthorityFactory.replace(CoordinateSystem) method. The default implementation returns the axis direction unchanged.
Parameters:
  direction - The axis direction to replace. The new direction, or direction if no change were needed.
throws:
  FactoryException - if an error occured while creating the new axis direction.



replace
protected CoordinateSystemAxis replace(CoordinateSystemAxis axis) throws FactoryException(Code)
Replaces (if needed) the specified axis by a new one. The default implementation invokes TransformedAuthorityFactory.replace(Unit) and TransformedAuthorityFactory.replace(AxisDirection) .
Parameters:
  axis - The coordinate system axis to replace. The new coordinate system axis, or axis if no change were needed.
throws:
  FactoryException - if an error occured while creating the new coordinate system axis.



replace
protected CoordinateSystem replace(CoordinateSystem cs) throws FactoryException(Code)
Replaces (if needed) the specified coordinate system by a new one. The default implementation invokes TransformedAuthorityFactory.replace(CoordinateSystemAxis) replace for each axis. In addition, axis are sorted if this factory implements the Comparator interface.
Parameters:
  cs - The coordinate system to replace. The new coordinate system, or cs if no change were needed.
throws:
  FactoryException - if an error occured while creating the new coordinate system.



replace
protected Datum replace(Datum datum) throws FactoryException(Code)
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. The new datum, or datum if no change were needed.
throws:
  FactoryException - if an error occured while creating the new datum.



replace
protected CoordinateReferenceSystem replace(CoordinateReferenceSystem crs) throws FactoryException(Code)
Replaces (if needed) the specified coordinate reference system. The default implementation checks if there is a or a . 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. A new CRS, or crs if no change were needed.
throws:
  FactoryException - if an error occured while creating the new CRS object.



replace
protected CoordinateOperation replace(CoordinateOperation operation) throws FactoryException(Code)
Replaces (if needed) the specified coordinate operation. The default implementation checks if there is a source or target . 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. A new operation, or operation if no change were needed.
throws:
  FactoryException - if an error occured while creating the new operation object.



Fields inherited from org.geotools.referencing.factory.AuthorityFactoryAdapter
final protected CRSAuthorityFactory crsFactory(Code)(Java Doc)
final protected CSAuthorityFactory csFactory(Code)(Java Doc)
final protected DatumAuthorityFactory datumFactory(Code)(Java Doc)
final protected CoordinateOperationAuthorityFactory operationFactory(Code)(Java Doc)

Methods inherited from org.geotools.referencing.factory.AuthorityFactoryAdapter
public CartesianCS createCartesianCS(String code) throws FactoryException(Code)(Java Doc)
public CompoundCRS createCompoundCRS(String code) throws FactoryException(Code)(Java Doc)
public CoordinateOperation createCoordinateOperation(String code) throws FactoryException(Code)(Java Doc)
public CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws FactoryException(Code)(Java Doc)
public CoordinateSystem createCoordinateSystem(String code) throws FactoryException(Code)(Java Doc)
public CoordinateSystemAxis createCoordinateSystemAxis(String code) throws FactoryException(Code)(Java Doc)
public CylindricalCS createCylindricalCS(String code) throws FactoryException(Code)(Java Doc)
public Datum createDatum(String code) throws FactoryException(Code)(Java Doc)
public DerivedCRS createDerivedCRS(String code) throws FactoryException(Code)(Java Doc)
public Ellipsoid createEllipsoid(String code) throws FactoryException(Code)(Java Doc)
public EllipsoidalCS createEllipsoidalCS(String code) throws FactoryException(Code)(Java Doc)
public EngineeringCRS createEngineeringCRS(String code) throws FactoryException(Code)(Java Doc)
public EngineeringDatum createEngineeringDatum(String code) throws FactoryException(Code)(Java Doc)
public Extent createExtent(String code) throws FactoryException(Code)(Java Doc)
public Set createFromCoordinateReferenceSystemCodes(String sourceCode, String targetCode) throws FactoryException(Code)(Java Doc)
public GeocentricCRS createGeocentricCRS(String code) throws FactoryException(Code)(Java Doc)
public GeodeticDatum createGeodeticDatum(String code) throws FactoryException(Code)(Java Doc)
public GeographicCRS createGeographicCRS(String code) throws FactoryException(Code)(Java Doc)
public ImageCRS createImageCRS(String code) throws FactoryException(Code)(Java Doc)
public ImageDatum createImageDatum(String code) throws FactoryException(Code)(Java Doc)
public IdentifiedObject createObject(String code) throws FactoryException(Code)(Java Doc)
public OperationMethod createOperationMethod(String code) throws FactoryException(Code)(Java Doc)
public ParameterDescriptor createParameterDescriptor(String code) throws FactoryException(Code)(Java Doc)
public PolarCS createPolarCS(String code) throws FactoryException(Code)(Java Doc)
public PrimeMeridian createPrimeMeridian(String code) throws FactoryException(Code)(Java Doc)
public ProjectedCRS createProjectedCRS(String code) throws FactoryException(Code)(Java Doc)
public SphericalCS createSphericalCS(String code) throws FactoryException(Code)(Java Doc)
public TemporalCRS createTemporalCRS(String code) throws FactoryException(Code)(Java Doc)
public TemporalDatum createTemporalDatum(String code) throws FactoryException(Code)(Java Doc)
public TimeCS createTimeCS(String code) throws FactoryException(Code)(Java Doc)
public Unit createUnit(String code) throws FactoryException(Code)(Java Doc)
public VerticalCRS createVerticalCRS(String code) throws FactoryException(Code)(Java Doc)
public VerticalCS createVerticalCS(String code) throws FactoryException(Code)(Java Doc)
public VerticalDatum createVerticalDatum(String code) throws FactoryException(Code)(Java Doc)
Collection dependencies()(Code)(Java Doc)
public Citation getAuthority()(Code)(Java Doc)
public Set getAuthorityCodes(Class type) throws FactoryException(Code)(Java Doc)
AuthorityFactory getAuthorityFactory(Class type, String code) throws FactoryException(Code)(Java Doc)
protected AuthorityFactory getAuthorityFactory(String code) throws FactoryException(Code)(Java Doc)
public String getBackingStoreDescription() throws FactoryException(Code)(Java Doc)
protected CRSAuthorityFactory getCRSAuthorityFactory(String code) throws FactoryException(Code)(Java Doc)
protected CSAuthorityFactory getCSAuthorityFactory(String code) throws FactoryException(Code)(Java Doc)
protected CoordinateOperationAuthorityFactory getCoordinateOperationAuthorityFactory(String code) throws FactoryException(Code)(Java Doc)
final CoordinateOperationFactory getCoordinateOperationFactory() throws FactoryException(Code)(Java Doc)
protected DatumAuthorityFactory getDatumAuthorityFactory(String code) throws FactoryException(Code)(Java Doc)
public InternationalString getDescriptionText(String code) throws FactoryException(Code)(Java Doc)
final ReferencingFactoryContainer getFactoryContainer(boolean crs)(Code)(Java Doc)
public IdentifiedObjectFinder getIdentifiedObjectFinder(Class type) throws FactoryException(Code)(Java Doc)
public Citation getVendor()(Code)(Java Doc)
public boolean isAvailable()(Code)(Java Doc)
final boolean isCodeMethodOverriden()(Code)(Java Doc)
Unit replace(Unit units) throws FactoryException(Code)(Java Doc)
CoordinateSystemAxis replace(CoordinateSystemAxis axis) throws FactoryException(Code)(Java Doc)
CoordinateSystem replace(CoordinateSystem cs) throws FactoryException(Code)(Java Doc)
Datum replace(Datum datum) throws FactoryException(Code)(Java Doc)
CoordinateReferenceSystem replace(CoordinateReferenceSystem crs) throws FactoryException(Code)(Java Doc)
CoordinateOperation replace(CoordinateOperation operation) throws FactoryException(Code)(Java Doc)
boolean sameAuthorityCodes(AuthorityFactory factory)(Code)(Java Doc)
static boolean sameAuthorityCodes(AuthorityFactory backingStore, AuthorityFactory factory)(Code)(Java Doc)
protected String toBackingFactoryCode(String code) throws FactoryException(Code)(Java Doc)

Methods inherited from org.geotools.referencing.factory.AbstractAuthorityFactory
public CartesianCS createCartesianCS(String code) throws FactoryException(Code)(Java Doc)
public CompoundCRS createCompoundCRS(String code) throws FactoryException(Code)(Java Doc)
public CoordinateOperation createCoordinateOperation(String code) throws FactoryException(Code)(Java Doc)
public CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws FactoryException(Code)(Java Doc)
public CoordinateSystem createCoordinateSystem(String code) throws FactoryException(Code)(Java Doc)
public CoordinateSystemAxis createCoordinateSystemAxis(String code) throws FactoryException(Code)(Java Doc)
public CylindricalCS createCylindricalCS(String code) throws FactoryException(Code)(Java Doc)
public Datum createDatum(String code) throws FactoryException(Code)(Java Doc)
public DerivedCRS createDerivedCRS(String code) throws FactoryException(Code)(Java Doc)
public Ellipsoid createEllipsoid(String code) throws FactoryException(Code)(Java Doc)
public EllipsoidalCS createEllipsoidalCS(String code) throws FactoryException(Code)(Java Doc)
public EngineeringCRS createEngineeringCRS(String code) throws FactoryException(Code)(Java Doc)
public EngineeringDatum createEngineeringDatum(String code) throws FactoryException(Code)(Java Doc)
public Extent createExtent(String code) throws FactoryException(Code)(Java Doc)
public Set createFromCoordinateReferenceSystemCodes(String sourceCode, String targetCode) throws FactoryException(Code)(Java Doc)
public GeocentricCRS createGeocentricCRS(String code) throws FactoryException(Code)(Java Doc)
public GeodeticDatum createGeodeticDatum(String code) throws FactoryException(Code)(Java Doc)
public GeographicCRS createGeographicCRS(String code) throws FactoryException(Code)(Java Doc)
public ImageCRS createImageCRS(String code) throws FactoryException(Code)(Java Doc)
public ImageDatum createImageDatum(String code) throws FactoryException(Code)(Java Doc)
public IdentifiedObject createObject(String code) throws FactoryException(Code)(Java Doc)
public OperationMethod createOperationMethod(String code) throws FactoryException(Code)(Java Doc)
public ParameterDescriptor createParameterDescriptor(String code) throws FactoryException(Code)(Java Doc)
public PolarCS createPolarCS(String code) throws FactoryException(Code)(Java Doc)
public PrimeMeridian createPrimeMeridian(String code) throws FactoryException(Code)(Java Doc)
public ProjectedCRS createProjectedCRS(String code) throws FactoryException(Code)(Java Doc)
public SphericalCS createSphericalCS(String code) throws FactoryException(Code)(Java Doc)
public TemporalCRS createTemporalCRS(String code) throws FactoryException(Code)(Java Doc)
public TemporalDatum createTemporalDatum(String code) throws FactoryException(Code)(Java Doc)
public TimeCS createTimeCS(String code) throws FactoryException(Code)(Java Doc)
public Unit createUnit(String code) throws FactoryException(Code)(Java Doc)
public VerticalCRS createVerticalCRS(String code) throws FactoryException(Code)(Java Doc)
public VerticalCS createVerticalCS(String code) throws FactoryException(Code)(Java Doc)
public VerticalDatum createVerticalDatum(String code) throws FactoryException(Code)(Java Doc)
public void dispose() throws FactoryException(Code)(Java Doc)
abstract public Citation getAuthority()(Code)(Java Doc)
public String getBackingStoreDescription() throws FactoryException(Code)(Java Doc)
public IdentifiedObjectFinder getIdentifiedObjectFinder(Class type) throws FactoryException(Code)(Java Doc)
boolean isAvailable()(Code)(Java Doc)
final protected NoSuchAuthorityCodeException noSuchAuthorityCode(Class type, String code)(Code)(Java Doc)
boolean sameAuthorityCodes(AuthorityFactory factory)(Code)(Java Doc)
protected String trimAuthority(String code)(Code)(Java Doc)

Fields inherited from org.geotools.referencing.factory.ReferencingFactory
final static Citation ALL(Code)(Java Doc)
final public static Logger LOGGER(Code)(Java Doc)

Methods inherited from org.geotools.referencing.factory.ReferencingFactory
Collection dependencies()(Code)(Java Doc)
protected static void ensureNonNull(String name, Object object) throws InvalidParameterValueException(Code)(Java Doc)
public Citation getVendor()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.