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


org.geotools.referencing.operation.transform.AbstractMathTransform
   org.geotools.referencing.operation.builder.LocalizationGridTransform2D

LocalizationGridTransform2D
final class LocalizationGridTransform2D extends AbstractMathTransform implements MathTransform2D,Serializable(Code)
Transform a set of coordinate points using a grid of localization. Input coordinates are index in this two-dimensional array. Those input coordinates (or index) should be in the range xinput = [0..width-1] and yinput = [0..height-1] inclusive, where width and height are the number of columns and rows in the grid of localization. Output coordinates are the values stored in the grid of localization at the specified index. If input coordinates (index) are non-integer values, then output coordinates are interpolated using a bilinear interpolation. If input coordinates are outside the grid range, then output coordinates are extrapolated.
since:
   2.0
version:
   $Id: LocalizationGridTransform2D.java 29101 2008-02-06 12:11:19Z desruisseaux $
author:
   Remi Eve
author:
   Martin DesruisseauxWarpTransform2Djavax.media.jai.WarpGridWarpTransform2D.getWarp


Field Summary
final static  intCP_LENGTH
     Length of an entry in the LocalizationGridTransform2D.grid array.
final static  intX_OFFSET
     x (usually longitude) offset relative to an entry.
final static  intY_OFFSET
     y (usually latitude) offset relative to an entry.

Constructor Summary
protected  LocalizationGridTransform2D(int width, int height, double[] grid, AffineTransform global)
     Constructs a localization grid using the specified data.

Method Summary
public  Matrixderivative(Point2D point)
     Gets the derivative of this transform at a point.
public  booleanequals(Object object)
     Compare this transform with the specified object for equality.
public  ParameterDescriptorGroupgetParameterDescriptors()
     Returns the parameter descriptors for this math transform.
public  intgetSourceDimensions()
     Returns the dimension of input points.
public  intgetTargetDimensions()
     Returns the dimension of output points.
public  inthashCode()
     Returns a hash value for this transform.
public  MathTransforminverse()
     Returns the inverse transform.
final  voidinverseTransform(Point2D source, Point2D.Double target, AffineTransform tr)
     Apply the inverse transform to a set of points.
public  booleanisIdentity()
     Tests if this transform is the identity transform.
public  voidtransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
     Transforme des coordonnées sources (généralement des index de pixels) en coordonnées destinations (généralement des degrés de longitude et latitude).
public  voidtransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
     Transforme des coordonnées sources (généralement des index de pixels) en coordonnées destinations (généralement des degrés de longitude et latitude).

Field Detail
CP_LENGTH
final static int CP_LENGTH(Code)
Length of an entry in the LocalizationGridTransform2D.grid array. This lenght is equals to the dimension of output coordinate points.



X_OFFSET
final static int X_OFFSET(Code)
x (usually longitude) offset relative to an entry. Points are stored in LocalizationGridTransform2D.grid as (x,y) pairs.



Y_OFFSET
final static int Y_OFFSET(Code)
y (usually latitude) offset relative to an entry. Points are stored in LocalizationGridTransform2D.grid as (x,y) pairs.




Constructor Detail
LocalizationGridTransform2D
protected LocalizationGridTransform2D(int width, int height, double[] grid, AffineTransform global)(Code)
Constructs a localization grid using the specified data.
Parameters:
  width - Number of grid's columns.
Parameters:
  height - Number of grid's rows.
Parameters:
  grid - The localization grid as an array of (x,y) coordinates.This array is not cloned; this is the caller's responsability to ensurethat it will not be modified as long as this transformation is stronglyreachable.
Parameters:
  global - A global affine transform for the whole grid.




Method Detail
derivative
public Matrix derivative(Point2D point)(Code)
Gets the derivative of this transform at a point.



equals
public boolean equals(Object object)(Code)
Compare this transform with the specified object for equality.



getParameterDescriptors
public ParameterDescriptorGroup getParameterDescriptors()(Code)
Returns the parameter descriptors for this math transform.



getSourceDimensions
public int getSourceDimensions()(Code)
Returns the dimension of input points.



getTargetDimensions
public int getTargetDimensions()(Code)
Returns the dimension of output points.



hashCode
public int hashCode()(Code)
Returns a hash value for this transform.



inverse
public MathTransform inverse()(Code)
Returns the inverse transform.



inverseTransform
final void inverseTransform(Point2D source, Point2D.Double target, AffineTransform tr) throws TransformException(Code)
Apply the inverse transform to a set of points. More specifically, this method transform "real world" coordinates to grid coordinates. This method use an iterative algorithm for that purpose. A TransformException is thrown in the computation do not converge. The algorithm applied by this method and its callers is:
  • Transform the first point using a "global" affine transform (i.e. the affine transformed computed using the "least squares" method in LocalizationGrid). Other points will be transformed using the last successful affine transform, since we assume that the points to transform are close to each other.
  • Next, compute a local affine transform and use if for transforming the point again. Recompute again the local affine transform and continue until the cell (x0,y0) doesn't change.

Parameters:
  source - The "real world" coordinate to transform.
Parameters:
  target - A pre-allocated destination point. This pointcan't be the same than source !
Parameters:
  tr - In input, the affine transform to use for the first step.In output, the last affine transform used for the transformation.



isIdentity
public boolean isIdentity()(Code)
Tests if this transform is the identity transform.



transform
public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)(Code)
Transforme des coordonnées sources (généralement des index de pixels) en coordonnées destinations (généralement des degrés de longitude et latitude). Les transformations feront intervenir des interpolations linéaires si les coordonnées sources ne sont pas entières.
Parameters:
  srcPts - Points d'entrée.
Parameters:
  srcOff - Index du premier point d'entrée à transformer.
Parameters:
  dstPts - Points de sortie.
Parameters:
  dstOff - Index du premier point de sortie.
Parameters:
  numPts - Nombre de points à transformer.



transform
public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)(Code)
Transforme des coordonnées sources (généralement des index de pixels) en coordonnées destinations (généralement des degrés de longitude et latitude). Les transformations feront intervenir des interpolations linéaires si les coordonnées sources ne sont pas entières.
Parameters:
  srcPts - Points d'entrée.
Parameters:
  srcOff - Index du premier point d'entrée à transformer.
Parameters:
  dstPts - Points de sortie.
Parameters:
  dstOff - Index du premier point de sortie.
Parameters:
  numPts - Nombre de points à transformer.



Methods inherited from org.geotools.referencing.operation.transform.AbstractMathTransform
public Shape createTransformedShape(Shape shape) throws TransformException(Code)(Java Doc)
public Matrix derivative(Point2D point) throws TransformException(Code)(Java Doc)
public Matrix derivative(DirectPosition point) throws TransformException(Code)(Java Doc)
protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected String formatWKT(Formatter formatter)(Code)(Java Doc)
public ParameterDescriptorGroup getParameterDescriptors()(Code)(Java Doc)
public ParameterValueGroup getParameterValues()(Code)(Java Doc)
abstract public int getSourceDimensions()(Code)(Java Doc)
abstract public int getTargetDimensions()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public MathTransform inverse() throws NoninvertibleTransformException(Code)(Java Doc)
public boolean isIdentity()(Code)(Java Doc)
protected static boolean needCopy(int srcOff, int dimSource, int dstOff, int dimTarget, int numPts)(Code)(Java Doc)
protected static double rollLongitude(double x)(Code)(Java Doc)
public Point2D transform(Point2D ptSrc, Point2D ptDst) throws TransformException(Code)(Java Doc)
public DirectPosition transform(DirectPosition ptSrc, DirectPosition ptDst) throws TransformException(Code)(Java Doc)
public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException(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.