Java Doc for MathTransformProvider.java in  » GIS » GeoTools-2.4.1 » org » geotools » referencing » operation » 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.operation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.referencing.operation.DefaultOperationMethod
   org.geotools.referencing.operation.MathTransformProvider

MathTransformProvider
abstract public class MathTransformProvider extends DefaultOperationMethod (Code)
An capable to creates a from set of . Implementations of this class should be listed in the following file:

META-INF/services/org.geotools.referencing.operation.MathTransformProvider

The will parse this file in order to gets all available providers on a system. If this file is bundle in many JAR files, the will read all of them.
since:
   2.0
version:
   $Id: MathTransformProvider.java 25262 2007-04-23 21:11:16Z desruisseaux $
author:
   Martin Desruisseaux


Inner Class :final protected static class Delegate extends MathTransformProxy


Constructor Summary
public  MathTransformProvider(int sourceDimensions, int targetDimensions, ParameterDescriptorGroup parameters)
     Constructs a math transform provider from a set of parameters.
public  MathTransformProvider(Map properties, int sourceDimensions, int targetDimensions, ParameterDescriptorGroup parameters)
     Constructs a math transform provider from a set of properties. The properties map is given unchanged to the .
Parameters:
  properties - Set of properties.

Method Summary
protected static  ParameterDescriptorcreateDescriptor(ReferenceIdentifier[] identifiers, double defaultValue, double minimum, double maximum, Unit unit)
     Constructs a parameter descriptor from a set of alias.
protected static  ParameterDescriptorGroupcreateDescriptorGroup(ReferenceIdentifier[] identifiers, GeneralParameterDescriptor[] parameters)
     Constructs a parameter group from a set of alias.
abstract protected  MathTransformcreateMathTransform(ParameterValueGroup values)
     Creates a math transform from the specified group of parameter values. Subclasses can implements this method as in the example below:
 double semiMajor = values.parameter("semi_major").doubleValue(SI.METER);
 double semiMinor = values.parameter("semi_minor").doubleValue(SI.METER);
 // etc...
 return new MyTransform(semiMajor, semiMinor, ...);
 

Parameters:
  values - The group of parameter values.
protected static  ParameterDescriptorcreateOptionalDescriptor(ReferenceIdentifier[] identifiers, double minimum, double maximum, Unit unit)
     Constructs an optional parameter descriptor from a set of alias. The parameter is identified as with MathTransformProvider.createDescriptor .
Parameters:
  identifiers - The parameter identifiers.
protected static  doubledoubleValue(ParameterDescriptor param, ParameterValueGroup group)
     Returns the parameter value for the specified operation parameter. Values are automatically converted into the standard units specified by the supplied param argument. This convenience method is used by subclasses for initializing from a set of parameters.
Parameters:
  param - The parameter to look for.
Parameters:
  group - The parameter value group to search into.
protected  ParameterValueGroupensureValidValues(ParameterValueGroup values)
     Ensures that the given set of parameters contains only valid values. This method compares all parameter names against the names declared in the .
protected  StringformatWKT(Formatter formatter)
     Format the inner part of a Well Known Text (WKT) element.
Parameters:
  formatter - The formatter to use.
public  ClassgetOperationType()
     Returns the operation type.
protected static  intintValue(ParameterDescriptor param, ParameterValueGroup group)
     Returns the parameter value for the specified operation parameter. This convenience method is used by subclasses for initializing from a set of parameters.
Parameters:
  param - The parameter to look for.
Parameters:
  group - The parameter value group to search into.
protected static  StringstringValue(ParameterDescriptor param, ParameterValueGroup group)
     Returns the parameter value for the specified operation parameter. This convenience method is used by subclasses for initializing from a set of parameters.
Parameters:
  param - The parameter to look for.
Parameters:
  group - The parameter value group to search into.
protected static  Objectvalue(ParameterDescriptor param, ParameterValueGroup group)
     Returns the parameter value for the specified operation parameter. This convenience method is used by subclasses for initializing from a set of parameters.
Parameters:
  param - The parameter to look for.
Parameters:
  group - The parameter value group to search into.


Constructor Detail
MathTransformProvider
public MathTransformProvider(int sourceDimensions, int targetDimensions, ParameterDescriptorGroup parameters)(Code)
Constructs a math transform provider from a set of parameters. The provider will be the same than the parameter ones.
Parameters:
  sourceDimensions - Number of dimensions in the source CRS of this operation method.
Parameters:
  targetDimensions - Number of dimensions in the target CRS of this operation method.
Parameters:
  parameters - The set of parameters (never null ).



MathTransformProvider
public MathTransformProvider(Map properties, int sourceDimensions, int targetDimensions, ParameterDescriptorGroup parameters)(Code)
Constructs a math transform provider from a set of properties. The properties map is given unchanged to the .
Parameters:
  properties - Set of properties. Should contains at least "name".
Parameters:
  sourceDimensions - Number of dimensions in the source CRS of this operation method.
Parameters:
  targetDimensions - Number of dimensions in the target CRS of this operation method.
Parameters:
  parameters - The set of parameters (never null ).




Method Detail
createDescriptor
protected static ParameterDescriptor createDescriptor(ReferenceIdentifier[] identifiers, double defaultValue, double minimum, double maximum, Unit unit)(Code)
Constructs a parameter descriptor from a set of alias. The parameter is identified by codes provided by one or more authorities. Common authorities are Citations.OGC OGC and Citations.EPSG EPSG for example.

The first entry in the identifiers array is both the and the . All others are .


Parameters:
  identifiers - The parameter identifiers. Most contains at least one entry.
Parameters:
  defaultValue - The default value for the parameter, or Double.NaN if none.
Parameters:
  minimum - The minimum parameter value, or Double.NEGATIVE_INFINITY if none.
Parameters:
  maximum - The maximum parameter value, or Double.POSITIVE_INFINITY if none.
Parameters:
  unit - The unit for default, minimum and maximum values.



createDescriptorGroup
protected static ParameterDescriptorGroup createDescriptorGroup(ReferenceIdentifier[] identifiers, GeneralParameterDescriptor[] parameters)(Code)
Constructs a parameter group from a set of alias. The parameter group is identified by codes provided by one or more authorities. Common authorities are Citations.OGC OGC and Citations.EPSG EPSG for example.

Special rules:

  • The first entry in the identifiers array is the .
  • If a an entry do not implements the GenericName interface, it is an .
  • All others are .

Parameters:
  identifiers - The operation identifiers. Most contains at least one entry.
Parameters:
  parameters - The set of parameters, or null or an empty array if none.



createMathTransform
abstract protected MathTransform createMathTransform(ParameterValueGroup values) throws InvalidParameterNameException, ParameterNotFoundException, InvalidParameterValueException, FactoryException(Code)
Creates a math transform from the specified group of parameter values. Subclasses can implements this method as in the example below:
 double semiMajor = values.parameter("semi_major").doubleValue(SI.METER);
 double semiMinor = values.parameter("semi_minor").doubleValue(SI.METER);
 // etc...
 return new MyTransform(semiMajor, semiMinor, ...);
 

Parameters:
  values - The group of parameter values. The created math transform.
throws:
  InvalidParameterNameException - if the values contains an unknow parameter.
throws:
  ParameterNotFoundException - if a required parameter was not found.
throws:
  InvalidParameterValueException - if a parameter has an invalid value.
throws:
  FactoryException - if the math transform can't be created for some other reason(for example a required file was not found).
See Also:   MathTransformProvider.Delegate



createOptionalDescriptor
protected static ParameterDescriptor createOptionalDescriptor(ReferenceIdentifier[] identifiers, double minimum, double maximum, Unit unit)(Code)
Constructs an optional parameter descriptor from a set of alias. The parameter is identified as with MathTransformProvider.createDescriptor .
Parameters:
  identifiers - The parameter identifiers. Most contains at least one entry.
Parameters:
  minimum - The minimum parameter value, or Double.NEGATIVE_INFINITY if none.
Parameters:
  maximum - The maximum parameter value, or Double.POSITIVE_INFINITY if none.
Parameters:
  unit - The unit for default, minimum and maximum values.



doubleValue
protected static double doubleValue(ParameterDescriptor param, ParameterValueGroup group) throws ParameterNotFoundException(Code)
Returns the parameter value for the specified operation parameter. Values are automatically converted into the standard units specified by the supplied param argument. This convenience method is used by subclasses for initializing from a set of parameters.
Parameters:
  param - The parameter to look for.
Parameters:
  group - The parameter value group to search into. The requested parameter value, or NaN if param is and the user didn'tprovided any value.
throws:
  ParameterNotFoundException - if the parameter is not found.org.geotools.parameter.Parameters



ensureValidValues
protected ParameterValueGroup ensureValidValues(ParameterValueGroup values) throws InvalidParameterNameException, InvalidParameterValueException(Code)
Ensures that the given set of parameters contains only valid values. This method compares all parameter names against the names declared in the . If an unknow parameter name is found, then an InvalidParameterNameException is thrown. This method also ensures that all values are assignable to the , are between the and values and are one of the . If the value fails any of those tests, then an InvalidParameterValueException is thrown.
Parameters:
  values - The parameters values to check. The parameter values to use for construction. May be different than the supplied values argument if some missing values needed to be filled with default values.
throws:
  InvalidParameterNameException - if a parameter name is unknow.
throws:
  InvalidParameterValueException - if a parameter has an invalid value.



formatWKT
protected String formatWKT(Formatter formatter)(Code)
Format the inner part of a Well Known Text (WKT) element.
Parameters:
  formatter - The formatter to use. The WKT element name.



getOperationType
public Class getOperationType()(Code)
Returns the operation type. It may be .class, .class, .class, etc. The default implementation returns Operation.class . Subclass should overrides this methods and returns the appropriate OpenGIS interface type (not the implementation type).



intValue
protected static int intValue(ParameterDescriptor param, ParameterValueGroup group) throws ParameterNotFoundException(Code)
Returns the parameter value for the specified operation parameter. This convenience method is used by subclasses for initializing from a set of parameters.
Parameters:
  param - The parameter to look for.
Parameters:
  group - The parameter value group to search into. The requested parameter value, or 0 if param is and the user didn'tprovided any value.
throws:
  ParameterNotFoundException - if the parameter is not found.org.geotools.parameter.Parameters



stringValue
protected static String stringValue(ParameterDescriptor param, ParameterValueGroup group) throws ParameterNotFoundException(Code)
Returns the parameter value for the specified operation parameter. This convenience method is used by subclasses for initializing from a set of parameters.
Parameters:
  param - The parameter to look for.
Parameters:
  group - The parameter value group to search into. The requested parameter value, or null if param is and the user didn'tprovided any value.
throws:
  ParameterNotFoundException - if the parameter is not found.org.geotools.parameter.Parameters



value
protected static Object value(ParameterDescriptor param, ParameterValueGroup group) throws ParameterNotFoundException(Code)
Returns the parameter value for the specified operation parameter. This convenience method is used by subclasses for initializing from a set of parameters.
Parameters:
  param - The parameter to look for.
Parameters:
  group - The parameter value group to search into. The requested parameter value, or null if param is and the user didn'tprovided any value.
throws:
  ParameterNotFoundException - if the parameter is not found.org.geotools.parameter.Parameters



Fields inherited from org.geotools.referencing.operation.DefaultOperationMethod
final protected int sourceDimensions(Code)(Java Doc)
final protected int targetDimensions(Code)(Java Doc)

Methods inherited from org.geotools.referencing.operation.DefaultOperationMethod
public static void checkDimensions(OperationMethod method, MathTransform transform) throws MismatchedDimensionException(Code)(Java Doc)
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc)
protected String formatWKT(Formatter formatter)(Code)(Java Doc)
public InternationalString getFormula()(Code)(Java Doc)
Class getOperationType()(Code)(Java Doc)
public ParameterDescriptorGroup getParameters()(Code)(Java Doc)
public int getSourceDimensions()(Code)(Java Doc)
public int getTargetDimensions()(Code)(Java Doc)
public int hashCode()(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.