Java Doc for ReferencingFactoryContainer.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.ReferencingFactoryContainer

All known Subclasses:   org.geotools.referencing.factory.FactoryGroup,
ReferencingFactoryContainer
public class ReferencingFactoryContainer extends ReferencingFactory (Code)
A set of utilities methods working on factories. Many of those methods requires more than one factory. Consequently, they can't be a method in a single factory. Furthermore, since they are helper methods and somewhat implementation-dependent, they are not part of GeoAPI.
since:
   2.4
version:
   $Id: ReferencingFactoryContainer.java 26090 2007-06-29 08:09:27Z desruisseaux $
author:
   Martin Desruisseaux



Constructor Summary
public  ReferencingFactoryContainer(DatumFactory datumFactory, CSFactory csFactory, CRSFactory crsFactory, MathTransformFactory mtFactory)
     Constructs an instance using the specified factories.
public  ReferencingFactoryContainer(Hints userHints)
     Creates an instance from the specified hints.

Method Summary
public  MathTransformcreateBaseToDerived(CoordinateReferenceSystem baseCRS, ParameterValueGroup parameters, CoordinateSystem derivedCS)
     Creates a from a base CRS to a derived CS.
public  MathTransformcreateBaseToDerived(CoordinateReferenceSystem baseCRS, ParameterValueGroup parameters, CoordinateSystem derivedCS, Collection methods)
     Creates a from a base CRS to a derived CS.
public  MathTransformcreateParameterizedTransform(ParameterValueGroup parameters)
     Creates a transform from a group of parameters.
public  MathTransformcreateParameterizedTransform(ParameterValueGroup parameters, Collection methods)
     Creates a transform from a group of parameters and add the method used to a list. This variant of createParameterizedTransform(...) provides a way for the client to keep trace of any used by this factory.
public  ProjectedCRScreateProjectedCRS(Map properties, GeographicCRS baseCRS, Conversion conversionFromBase, CartesianCS derivedCS)
     Creates a projected coordinate reference system from a conversion.
public  ProjectedCRScreateProjectedCRS(Map properties, GeographicCRS baseCRS, OperationMethod method, ParameterValueGroup parameters, CartesianCS derivedCS)
     Creates a projected coordinate reference system from a set of parameters.
public  CRSFactorygetCRSFactory()
     Returns the factory.
public  CSFactorygetCSFactory()
     Returns the factory.
public  DatumFactorygetDatumFactory()
     Returns the factory.
public  MapgetImplementationHints()
     Returns all factories in this group.
public  OperationMethodgetLastUsedMethod()
     Returns the operation method for the last call to a create method in the currently running thread.
public  MathTransformFactorygetMathTransformFactory()
     Returns the factory.
public  OperationMethodgetOperationMethod(String name)
     Returns the operation method for the specified name. If the is the , then this method just delegates the call to it.
public static  ReferencingFactoryContainerinstance(Hints hints)
     Creates an instance from the specified hints.
public  CoordinateReferenceSystemseparate(CoordinateReferenceSystem crs, int[] dimensions)
     Returns a new coordinate reference system with only the specified dimension. This method is used for example in order to get a component of a .
Parameters:
  crs - The original (usually compound) CRS.
Parameters:
  dimensions - The dimensions to keep.
public  CoordinateReferenceSystemtoGeodetic3D(CompoundCRS crs)
     Converts a 2D + 1D compound CRS into a 3D CRS, if possible.


Constructor Detail
ReferencingFactoryContainer
public ReferencingFactoryContainer(DatumFactory datumFactory, CSFactory csFactory, CRSFactory crsFactory, MathTransformFactory mtFactory)(Code)
Constructs an instance using the specified factories. If any factory is null, a default instance will be created by ReferencingFactoryFinder when first needed.
Parameters:
  datumFactory - The factory.
Parameters:
  csFactory - The factory.
Parameters:
  crsFactory - The factory.
Parameters:
  mtFactory - The factory.ReferencingFactoryContainer.createInstance createInstance



ReferencingFactoryContainer
public ReferencingFactoryContainer(Hints userHints)(Code)
Creates an instance from the specified hints. This constructor recognizes the Hints.CRS_FACTORY CRS , Hints.CS_FACTORY CS , Hints.DATUM_FACTORY DATUM and Hints.MATH_TRANSFORM_FACTORY MATH_TRANSFORM FACTORY hints.

This constructor is public mainly for org.geotools.factory.FactoryCreator usage. Consider invoking (userHints) instead.
Parameters:
  userHints - The hints, or null if none.





Method Detail
createBaseToDerived
public MathTransform createBaseToDerived(CoordinateReferenceSystem baseCRS, ParameterValueGroup parameters, CoordinateSystem derivedCS) throws NoSuchIdentifierException, FactoryException(Code)
Creates a from a base CRS to a derived CS. If the "semi_major" and "semi_minor" parameters are not explicitly specified, they will be inferred from the and added to parameters . In addition, this method performs axis switch as needed.

The used can be obtained by a call to ReferencingFactoryContainer.getLastUsedMethod .
Parameters:
  baseCRS - The source coordinate reference system.
Parameters:
  parameters - The parameter values for the transform.
Parameters:
  derivedCS - the target coordinate system. The parameterized transform.
throws:
  NoSuchIdentifierException - if there is no transform registered for the method.
throws:
  FactoryException - if the object creation failed. This exception is thrownif some required parameter has not been supplied, or has illegal value.




createBaseToDerived
public MathTransform createBaseToDerived(CoordinateReferenceSystem baseCRS, ParameterValueGroup parameters, CoordinateSystem derivedCS, Collection methods) throws NoSuchIdentifierException, FactoryException(Code)
Creates a from a base CRS to a derived CS. If the "semi_major" and "semi_minor" parameters are not explicitly specified, they will be inferred from the and added to parameters . In addition, this method performs axis switch as needed.
Parameters:
  baseCRS - The source coordinate reference system.
Parameters:
  parameters - The parameter values for the transform.
Parameters:
  derivedCS - the target coordinate system.
Parameters:
  methods - A collection where to add the operation method that apply to the transform,or null if none. The parameterized transform.
throws:
  NoSuchIdentifierException - if there is no transform registered for the method.
throws:
  FactoryException - if the object creation failed. This exception is thrownif some required parameter has not been supplied, or has illegal value.ReferencingFactoryContainer.createBaseToDerivedReferencingFactoryContainer.getLastUsedMethod



createParameterizedTransform
public MathTransform createParameterizedTransform(ParameterValueGroup parameters) throws NoSuchIdentifierException, FactoryException(Code)
Creates a transform from a group of parameters. This method delegates the work to the and keep trace of the used. The later can be obtained by a call to ReferencingFactoryContainer.getLastUsedMethod .
Parameters:
  parameters - The parameter values. The parameterized transform.
throws:
  NoSuchIdentifierException - if there is no transform registered for the method.
throws:
  FactoryException - if the object creation failed. This exception is thrownif some required parameter has not been supplied, or has illegal value.
See Also:   MathTransformFactory.createParameterizedTransform



createParameterizedTransform
public MathTransform createParameterizedTransform(ParameterValueGroup parameters, Collection methods) throws NoSuchIdentifierException, FactoryException(Code)
Creates a transform from a group of parameters and add the method used to a list. This variant of createParameterizedTransform(...) provides a way for the client to keep trace of any used by this factory.
Parameters:
  parameters - The parameter values.
Parameters:
  methods - A collection where to add the operation method that apply to the transform,or null if none. The parameterized transform.
throws:
  NoSuchIdentifierException - if there is no transform registered for the method.
throws:
  FactoryException - if the object creation failed. This exception is thrownif some required parameter has not been supplied, or has illegal value.ReferencingFactoryContainer.createParameterizedTransform(ParameterValueGroup)ReferencingFactoryContainer.getLastUsedMethod



createProjectedCRS
public ProjectedCRS createProjectedCRS(Map properties, GeographicCRS baseCRS, Conversion conversionFromBase, CartesianCS derivedCS) throws FactoryException(Code)
Creates a projected coordinate reference system from a conversion.
Parameters:
  properties - Name and other properties to give to the new object.
Parameters:
  baseCRS - Geographic coordinate reference system to base projection on.
Parameters:
  conversionFromBase - The .
Parameters:
  derivedCS - The coordinate system for the projected CRS.
throws:
  FactoryException - if the object creation failed.



createProjectedCRS
public ProjectedCRS createProjectedCRS(Map properties, GeographicCRS baseCRS, OperationMethod method, ParameterValueGroup parameters, CartesianCS derivedCS) throws FactoryException(Code)
Creates a projected coordinate reference system from a set of parameters. If the "semi_major" and "semi_minor" parameters are not explicitly specified, they will be inferred from the and added to the parameters . This method also checks for axis order and unit conversions.
Parameters:
  properties - Name and other properties to give to the new object.
Parameters:
  baseCRS - Geographic coordinate reference system to base projection on.
Parameters:
  method - The operation method, or null for a default one.
Parameters:
  parameters - The parameter values to give to the projection.
Parameters:
  derivedCS - The coordinate system for the projected CRS.
throws:
  FactoryException - if the object creation failed.



getCRSFactory
public CRSFactory getCRSFactory()(Code)
Returns the factory.



getCSFactory
public CSFactory getCSFactory()(Code)
Returns the factory.



getDatumFactory
public DatumFactory getDatumFactory()(Code)
Returns the factory.



getImplementationHints
public Map getImplementationHints()(Code)
Returns all factories in this group. The returned map contains values for the Hints.CRS_FACTORY CRS , Hints.CS_FACTORY CS , Hints.DATUM_FACTORY DATUM and Hints.MATH_TRANSFORM_FACTORY MATH_TRANSFORM FACTORY hints.



getLastUsedMethod
public OperationMethod getLastUsedMethod()(Code)
Returns the operation method for the last call to a create method in the currently running thread. This method may be invoked after any of the following methods:

The operation method for the last call to a create method, or null if none.
See Also:   DefaultMathTransformFactory.getLastUsedMethod



getMathTransformFactory
public MathTransformFactory getMathTransformFactory()(Code)
Returns the factory.



getOperationMethod
public OperationMethod getOperationMethod(String name) throws NoSuchIdentifierException(Code)
Returns the operation method for the specified name. If the is the , then this method just delegates the call to it. Otherwise this method scans all operations registered in the math transform factory until a match is found.
Parameters:
  name - The case insensitive of the operation method to search for (e.g. "Transverse_Mercator" ). The operation method.
throws:
  NoSuchIdentifierException - if there is no operation method registered for thespecified name.
See Also:   DefaultMathTransformFactory.getOperationMethod



instance
public static ReferencingFactoryContainer instance(Hints hints)(Code)
Creates an instance from the specified hints. This method recognizes the Hints.CRS_FACTORY CRS , Hints.CS_FACTORY CS , Hints.DATUM_FACTORY DATUM and Hints.MATH_TRANSFORM_FACTORY MATH_TRANSFORM FACTORY hints.
Parameters:
  hints - The hints, or null if none. A factory group created from the specified set of hints.



separate
public CoordinateReferenceSystem separate(CoordinateReferenceSystem crs, int[] dimensions) throws FactoryException(Code)
Returns a new coordinate reference system with only the specified dimension. This method is used for example in order to get a component of a .
Parameters:
  crs - The original (usually compound) CRS.
Parameters:
  dimensions - The dimensions to keep. The CRS with only the specified dimensions.



toGeodetic3D
public CoordinateReferenceSystem toGeodetic3D(CompoundCRS crs) throws FactoryException(Code)
Converts a 2D + 1D compound CRS into a 3D CRS, if possible. More specifically, if the specified is made of a (or ) and a CRS, and if the vertical CRS datum type is , then this method converts the compound CRS in a single 3D CRS. Otherwise, the crs argument is returned unchanged.
Parameters:
  crs - The compound CRS to converts in a 3D geographic or projected CRS. The 3D geographic or projected CRS, or crs if the change can't be applied.
throws:
  FactoryException - if the object creation failed.



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.