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


java.lang.Object
   org.geotools.referencing.operation.transform.DimensionFilter

DimensionFilter
public class DimensionFilter (Code)
An utility class for the separation of of . Given an arbitrary , this utility class will returns a new math transform that operates only of a given set of source dimensions. For example if the supplied transform has (x, y, z) inputs and (longitude, latitude, height) outputs, then the following code:
 (0, 2);
 MathTransform mt = 
 (transform);
 

will returns a transform with (x, y) inputs and (probably) (longitude, latitude) outputs. The later can be verified with a call to DimensionFilter.getTargetDimensions .


since:
   2.1
version:
   $Id: DimensionFilter.java 29058 2008-02-03 17:47:07Z desruisseaux $
author:
   Martin Desruisseauxorg.opengis.referencing.operation.CoordinateOperation org.geotools.util.SortedIntegerSet



Constructor Summary
public  DimensionFilter()
     Constructs a dimension filter with the .
public  DimensionFilter(Hints hints)
     Constructs a dimension filter with a .
public  DimensionFilter(MathTransformFactory factory)
     Constructs a dimension filter with the specified factory.

Method Summary
public  voidaddSourceDimension(int dimension)
     Add an input dimension to keep.
public  voidaddSourceDimensionRange(int lower, int upper)
     Add a range of input dimensions to keep.
public  voidaddSourceDimensions(int[] dimensions)
     Add input dimensions to keep.
public  voidaddTargetDimension(int dimension)
     Add an output dimension to keep.
public  voidaddTargetDimensionRange(int lower, int upper)
     Add a range of output dimensions to keep.
public  voidaddTargetDimensions(int[] dimensions)
     Add output dimensions to keep.
public  voidclear()
     Clear any and setting.
public  int[]getSourceDimensions()
     Returns the input dimensions.
public  int[]getTargetDimensions()
     Returns the output dimensions.
public  MathTransformseparate(MathTransform transform)
     Separates the specified math transform.


Constructor Detail
DimensionFilter
public DimensionFilter()(Code)
Constructs a dimension filter with the .



DimensionFilter
public DimensionFilter(Hints hints)(Code)
Constructs a dimension filter with a .
Parameters:
  hints - Hints to control the creation of the MathTransformFactory.



DimensionFilter
public DimensionFilter(MathTransformFactory factory)(Code)
Constructs a dimension filter with the specified factory.
Parameters:
  factory - The factory for the creation of new math transforms.




Method Detail
addSourceDimension
public void addSourceDimension(int dimension) throws IllegalArgumentException(Code)
Add an input dimension to keep. The dimension applies to the source dimensions of the transform to be given to (transform). The number must be in the range 0 inclusive to transform. exclusive.
Parameters:
  dimension - The dimension to add.
throws:
  IllegalArgumentException - if dimension is negative.



addSourceDimensionRange
public void addSourceDimensionRange(int lower, int upper) throws IllegalArgumentException(Code)
Add a range of input dimensions to keep. The lower and upper values apply to the source dimensions of the transform to be given to (transform).
Parameters:
  lower - The lower dimension, inclusive. Must not be smaller than 0.
Parameters:
  upper - The upper dimension, exclusive. Must not be greater thantransform..



addSourceDimensions
public void addSourceDimensions(int[] dimensions) throws IllegalArgumentException(Code)
Add input dimensions to keep. The dimensions apply to the source dimensions of the transform to be given to (transform). All numbers must be in the range 0 inclusive to transform. exclusive. The dimensions values must be in strictly increasing order.
Parameters:
  dimensions - The new sequence of dimensions.
throws:
  IllegalArgumentException - if dimensions contains negative values oris not a strictly increasing sequence.



addTargetDimension
public void addTargetDimension(int dimension) throws IllegalArgumentException(Code)
Add an output dimension to keep. The dimension applies to the target dimensions of the transform to be given to (transform). The number must be in the range 0 inclusive to transform. exclusive.
Parameters:
  dimension - The dimension to add.
throws:
  IllegalArgumentException - if dimension is negative.



addTargetDimensionRange
public void addTargetDimensionRange(int lower, int upper) throws IllegalArgumentException(Code)
Add a range of output dimensions to keep. The lower and upper values apply to the target dimensions of the transform to be given to (transform).
Parameters:
  lower - The lower dimension, inclusive. Must not be smaller than 0.
Parameters:
  upper - The upper dimension, exclusive. Must not be greater thantransform..



addTargetDimensions
public void addTargetDimensions(int[] dimensions) throws IllegalArgumentException(Code)
Add output dimensions to keep. The dimensions apply to the target dimensions of the transform to be given to (transform). All numbers must be in the range 0 inclusive to transform. exclusive. The dimensions values must be in strictly increasing order.
Parameters:
  dimensions - The new sequence of dimensions.
throws:
  IllegalArgumentException - if dimensions contains negative values oris not a strictly increasing sequence.



clear
public void clear()(Code)
Clear any and setting.



getSourceDimensions
public int[] getSourceDimensions() throws IllegalStateException(Code)
Returns the input dimensions. This information is available only if at least one setter method has been explicitly invoked for source dimensions. The input dimension as a sequence of strictly increasing values.
throws:
  IllegalStateException - if input dimensions have not been set.



getTargetDimensions
public int[] getTargetDimensions() throws IllegalStateException(Code)
Returns the output dimensions. This information is available only if one of the following conditions is meet:
  • Target dimensions has been explicitly set using setter methods.
  • No target dimensions were set but (transform) has been invoked at least once, in which case the target dimensions are inferred automatically from the and the transform .
The output dimension as a sequence of strictly increasing values.
throws:
  IllegalStateException - if this information is not available.



separate
public MathTransform separate(MathTransform transform) throws FactoryException(Code)
Separates the specified math transform. This method returns a math transform that uses only the specified and returns only the specified . Special case:
  • If are unspecified, then the returned transform will expects all source dimensions as input but will produces only the specified as output.

  • If are unspecified, then the returned transform will expects only the specified as input, and the target dimensions will be inferred automatically.


Parameters:
  transform - The transform to separate. The separated math transform.
throws:
  FactoryException - if the transform can't be separated.



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.