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


java.lang.Object
   org.geotools.referencing.operation.builder.MathTransformBuilder

All known Subclasses:   org.geotools.referencing.operation.builder.BursaWolfTransformBuilder,  org.geotools.referencing.operation.builder.RubberSheetBuilder,  org.geotools.referencing.operation.builder.ProjectiveTransformBuilder,
MathTransformBuilder
abstract public class MathTransformBuilder (Code)
Provides a basic implementation for builders. Math transform builders create MathTransform objects for transforming coordinates from a source CRS ( ) to a target CRS using empirical parameters. Usually, one of those CRS is a or one with a well known relationship to the earth. The other CRS is often an or one tied to some ship. For example a remote sensing image before georectification may be referenced by an .

Design note: It is technically possible to reference such remote sensing images with a from the geographic or projected CRS, where the is the math transform . Such approach is advantageous for implementations, since they can determine the operation just by inspection of the DerivedCRS instance. However this is conceptually incorrect since DerivedCRS can be related to an other CRS only through , which by definition are accurate up to rounding errors. The operations created by math transform builders are rather , which can't be used for DerivedCRS creation.

The math transform from to is calculated by MathTransformBuilder from a set of in both CRS.

Subclasses must implement at least the MathTransformBuilder.getMinimumPointCount() and MathTransformBuilder.computeMathTransform() methods.
since:
   2.4
version:
   $Id: MathTransformBuilder.java 28982 2008-01-28 16:27:33Z acuster $
author:
   Jan Jezek
author:
   Martin Desruisseaux



Field Summary
final protected  MathTransformFactorymtFactory
     The factory to use for creating MathTransform math transform instances.

Constructor Summary
public  MathTransformBuilder()
     Creates a builder with the default factories.
public  MathTransformBuilder(Hints hints)
     Creates a builder from the specified hints.

Method Summary
abstract protected  MathTransformcomputeMathTransform()
     Calculates the math transform immediately. Math transform from MathTransformBuilder.setMappedPositions MappedPosition.
public  ClassgetCoordinateSystemType()
     Returns the required coordinate system type.
public  intgetDimension()
     Returns the dimension for and MathTransformBuilder.getTargetCRS target CRS.
public  StatisticsgetErrorStatistics()
     Returns statistics about the errors.
public  ListgetMappedPositions()
     Returns the list of mapped positions.
final public  MathTransformgetMathTransform()
     Returns the calculated math transform.
abstract public  intgetMinimumPointCount()
     Returns the minimum number of points required by this builder.
public  StringgetName()
     Returns the name for the to be created by this builder.
public  CoordinateReferenceSystemgetSourceCRS()
     Returns the coordinate reference system for the MathTransformBuilder.getSourcePoints source points .
public  DirectPosition[]getSourcePoints()
     Returns the source points.
public  CoordinateReferenceSystemgetTargetCRS()
     Returns the coordinate reference system for the MathTransformBuilder.getTargetPoints target points .
public  DirectPosition[]getTargetPoints()
     Returns the target points.
public  TransformationgetTransformation()
     Returns the coordinate operation wrapping the .
public  voidprintPoints(Writer out, Locale locale)
     Prints a table of all source and target points stored in this builder.
public  voidsetMappedPositions(List positions)
     Set the list of mapped positions.
public  voidsetSourcePoints(DirectPosition[] points)
     Convenience method setting the in mapped positions.
public  voidsetTargetPoints(DirectPosition[] points)
     Convenience method setting the in mapped positions.
public  StringtoString()
     Returns a string representation of this builder.

Field Detail
mtFactory
final protected MathTransformFactory mtFactory(Code)
The factory to use for creating MathTransform math transform instances.




Constructor Detail
MathTransformBuilder
public MathTransformBuilder()(Code)
Creates a builder with the default factories.



MathTransformBuilder
public MathTransformBuilder(Hints hints)(Code)
Creates a builder from the specified hints.




Method Detail
computeMathTransform
abstract protected MathTransform computeMathTransform() throws FactoryException(Code)
Calculates the math transform immediately. Math transform from MathTransformBuilder.setMappedPositions MappedPosition.
throws:
  FactoryException - if the math transform can't be created.



getCoordinateSystemType
public Class getCoordinateSystemType()(Code)
Returns the required coordinate system type. The default implementation returns CoordinateSystem.class , which means that every kind of coordinate system is legal. Some subclasses will restrict to .



getDimension
public int getDimension()(Code)
Returns the dimension for and MathTransformBuilder.getTargetCRS target CRS. The default value is 2.



getErrorStatistics
public Statistics getErrorStatistics() throws FactoryException(Code)
Returns statistics about the errors. The errors are computed as the distance between transformed by the math transform computed by this MathTransformBuilder , and the . Use Statistics.rms for the Root Mean Squared error.
throws:
  FactoryException - If the math transform can't be created or used.



getMappedPositions
public List getMappedPositions()(Code)
Returns the list of mapped positions.



getMathTransform
final public MathTransform getMathTransform() throws FactoryException(Code)
Returns the calculated math transform. This method the first time it is requested. Math transform from MathTransformBuilder.setMappedPositions MappedPosition.
throws:
  FactoryException - if the math transform can't be created.



getMinimumPointCount
abstract public int getMinimumPointCount()(Code)
Returns the minimum number of points required by this builder. This minimum depends on the algorithm used. For example require at least 3 points, while requires only 2 points.



getName
public String getName()(Code)
Returns the name for the to be created by this builder.



getSourceCRS
public CoordinateReferenceSystem getSourceCRS() throws FactoryException(Code)
Returns the coordinate reference system for the MathTransformBuilder.getSourcePoints source points . This method determines the CRS as below:

  • If at least one source points has a CRS, then this CRS is selected as the source one and returned.
  • If no source point has a CRS, then this method creates an using the same than the one used by the .

throws:
  FactoryException - if the CRS can't be created.



getSourcePoints
public DirectPosition[] getSourcePoints()(Code)
Returns the source points. This convenience method extracts those points from the .



getTargetCRS
public CoordinateReferenceSystem getTargetCRS() throws FactoryException(Code)
Returns the coordinate reference system for the MathTransformBuilder.getTargetPoints target points . This method determines the CRS as below:

  • If at least one target points has a CRS, then this CRS is selected as the target one and returned.
  • If no target point has a CRS, then this method creates an using the same than the one used by the .

throws:
  FactoryException - if the CRS can't be created.



getTargetPoints
public DirectPosition[] getTargetPoints()(Code)
Returns the target points. This convenience method extracts those points from the .



getTransformation
public Transformation getTransformation() throws FactoryException(Code)
Returns the coordinate operation wrapping the . The will be set to the Root Mean Square (RMS) of the differences between the source points transformed to the target CRS, and the expected target points.



printPoints
public void printPoints(Writer out, Locale locale) throws IOException(Code)
Prints a table of all source and target points stored in this builder.
Parameters:
  out - The output device where to print all points.
Parameters:
  locale - The locale, or null for the default.
throws:
  IOException - if an error occured while printing.



setMappedPositions
public void setMappedPositions(List positions) throws MismatchedSizeException, MismatchedDimensionException, MismatchedReferenceSystemException(Code)
Set the list of mapped positions.
throws:
  MismatchedSizeException - if the list doesn't have the expected number of points.
throws:
  MismatchedDimensionException - if some points doesn't have the.
throws:
  MismatchedReferenceSystemException - if CRS is not the same for all points.



setSourcePoints
public void setSourcePoints(DirectPosition[] points) throws MismatchedSizeException, MismatchedDimensionException, MismatchedReferenceSystemException(Code)
Convenience method setting the in mapped positions.
Parameters:
  points - The source points.
throws:
  MismatchedSizeException - if the list doesn't have the expected number of points.
throws:
  MismatchedDimensionException - if some points doesn't have the.
throws:
  MismatchedReferenceSystemException - if CRS is not the same for all points.



setTargetPoints
public void setTargetPoints(DirectPosition[] points) throws MismatchedSizeException, MismatchedDimensionException, MismatchedReferenceSystemException(Code)
Convenience method setting the in mapped positions.
Parameters:
  points - The target points.
throws:
  MismatchedSizeException - if the list doesn't have the expected number of points.
throws:
  MismatchedDimensionException - if some points doesn't have the.
throws:
  MismatchedReferenceSystemException - if CRS is not the same for all points.



toString
public String toString()(Code)
Returns a string representation of this builder. The default implementation returns a table containing all source and target points.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.