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


java.lang.Object
   org.geotools.coverage.processing.Operations

Operations
public class Operations (Code)
Convenience, type-safe, methods for applying some common operations on objects. All methods wrap their arguments in a and delegate the work to the processor's AbstractProcessor.doOperation doOperation method. This convenience class do not brings any new functionalities, but brings type-safety when the operation is know at compile time. For operation unknown at compile time (e.g. for an operation selected by users in some widget), use the directly.
since:
   2.2
version:
   $Id: Operations.java 26601 2007-08-19 23:16:35Z desruisseaux $
author:
   Martin Desruisseaux
See Also:   org.geotools.coverage.processing.operation


Field Summary
final public static  OperationsDEFAULT
     The default instance.

Constructor Summary
public  Operations(RenderingHints hints)
     Creates a new instance using the specified hints.

Method Summary
public  GridCoverageSubsampleAverage(GridCoverage source, double scaleX, double scaleY, Interpolation interpolation, BorderExtender be)
    
public  Coverageabsolute(Coverage source)
     Computes the mathematical absolute value of each sample value.
public  Coverageadd(Coverage source, double[] constants)
     Adds constants (one for each band) to every sample values of the source coverage.
public  Coveragecrop(Coverage Source, Envelope envelope)
     Crops the image to a specified rectangular area.
public  CoveragedivideBy(Coverage source, double[] constants)
     Divides every sample values of the source coverage by constants (one for each band).
final protected  CoveragedoOperation(String operationName, Coverage source)
     Applies a process operation with default parameters. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage.
final protected  CoveragedoOperation(String operationName, Coverage source, String argumentName1, Object argumentValue1)
     Applies a process operation with one parameter. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage.
Parameters:
  argumentName1 - The name of the first parameter to setParameterValue.
Parameters:
  argumentValue1 - The value for the first parameter.
final protected  CoveragedoOperation(String operationName, Coverage source, String argumentName1, Object argumentValue1, String argumentName2, Object argumentValue2)
     Applies process operation with two parameters. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage.
Parameters:
  argumentName1 - The name of the first parameter to setParameterValue.
Parameters:
  argumentValue1 - The value for the first parameter.
Parameters:
  argumentName2 - The name of the second parameter to setParameterValue.
Parameters:
  argumentValue2 - The value for the second parameter.
final protected  CoveragedoOperation(String operationName, Coverage source, String argumentName1, Object argumentValue1, String argumentName2, Object argumentValue2, String argumentName3, Object argumentValue3)
     Applies a process operation with three parameters. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage.
Parameters:
  argumentName1 - The name of the first parameter to setParameterValue.
Parameters:
  argumentValue1 - The value for the first parameter.
Parameters:
  argumentName2 - The name of the second parameter to setParameterValue.
Parameters:
  argumentValue2 - The value for the second parameter.
Parameters:
  argumentName3 - The name of the third parameter to setParameterValue.
Parameters:
  argumentValue3 - The value for the third parameter.
final protected  CoveragedoOperation(String operationName, Coverage source, String argumentName1, Object argumentValue1, String argumentName2, Object argumentValue2, String argumentName3, Object argumentValue3, String argumentName4, Object argumentValue4)
     Applies a process operation with four parameters. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage.
final protected  CoveragedoOperation(String operationName, Coverage source, String argumentName1, Object argumentValue1, String argumentName2, Object argumentValue2, String argumentName3, Object argumentValue3, String argumentName4, Object argumentValue4, String argumentName5, Object argumentValue5)
     Applies a process operation with five parameters. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage.
final protected  CoveragedoOperation(String operationName, Coverage source, String argumentName1, Object argumentValue1, String argumentName2, Object argumentValue2, String argumentName3, Object argumentValue3, String argumentName4, Object argumentValue4, String argumentName5, Object argumentValue5, String argumentName6, Object argumentValue6)
     Applies a process operation with six parameters. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage.
public  Coverageexp(Coverage source)
     Takes the exponential of the sample values of a coverage.
public  GridCoveragefilteredSubsample(GridCoverage source)
     Subsamples an image using the default values.
public  GridCoveragefilteredSubsample(GridCoverage source, int scaleX, int scaleY, float[] qsFilter)
     Subsamples an image by integral factors.
Parameters:
  source - The source coverage.
Parameters:
  scaleX - The scale factor along the x axis.
public  GridCoveragefilteredSubsample(GridCoverage source, int scaleX, int scaleY, float[] qsFilter, Interpolation interpolation)
     Subsamples an image by integral factors.
Parameters:
  source - The source coverage.
Parameters:
  scaleX - The scale factor along the x axis.
public  GridCoveragefilteredSubsample(GridCoverage source, int scaleX, int scaleY, float[] qsFilter, Interpolation interpolation, BorderExtender be)
     Subsamples an image by integral factors. Operations.Operations(Hints)
Parameters:
  source - The source coverage.
Parameters:
  scaleX - The scale factor along the x axis.
public  CoveragegradientMagnitude(Coverage source)
     Edge detector which computes the magnitude of the image gradient vector in two orthogonal directions.
public  CoveragegradientMagnitude(Coverage source, KernelJAI mask1, KernelJAI mask2)
     Edge detector which computes the magnitude of the image gradient vector in two orthogonal directions.
public  GridCoverageinterpolate(GridCoverage source, String type)
     Specifies the interpolation type to be used to interpolate values for points which fall between grid cells.
public  GridCoverageinterpolate(GridCoverage source, Interpolation type)
     Specifies the interpolation type to be used to interpolate values for points which fall between grid cells.
public  GridCoverageinterpolate(GridCoverage source, Interpolation[] types)
     Specifies the interpolation types to be used to interpolate values for points which fall between grid cells.
public  Coverageinvert(Coverage source)
     Inverts the sample values of a coverage.
public  Coveragelog(Coverage source)
     Takes the natural logarithm of the sample values of a coverage.
public  Coveragemultiply(Coverage source, double[] constants)
     Multiplies every sample values of the source coverage by constants (one for each band).
public  GridCoveragenodataFilter(GridCoverage source)
     Replaces Float.NaN NaN values by the weighted average of neighbors values.
public  GridCoveragenodataFilter(GridCoverage source, int padding, int validityThreshold)
     Replaces Float.NaN NaN values by the weighted average of neighbors values.
Parameters:
  source - The source coverage.
Parameters:
  padding - The number of pixels above, below, to the left and to the right of central NaN pixel to use for computing the average.
public  GridCoveragerecolor(GridCoverage source, Map[] colorMaps)
     Recolors a coverage to the specified colormaps.
public  GridCoveragerecolor(GridCoverage source, ColorMap[] colorMaps)
     Recolors a coverage to the specified color maps.
public  Coverageresample(Coverage source, CoordinateReferenceSystem crs)
     Resamples a coverage to the specified coordinate reference system.
public  Coverageresample(GridCoverage source, CoordinateReferenceSystem crs, GridGeometry gridGeometry, Interpolation interpolationType)
     Resamples a grid coverage to the specified coordinate reference system and grid geometry.
public  Coveragerescale(Coverage source, double[] constants, double[] offsets)
     Maps the sample values of a coverage from one range to another range.
public  GridCoveragescale(GridCoverage source, double xScale, double yScale, double xTrans, double yTrans)
     Translates and resizes an image.
public  GridCoveragescale(GridCoverage source, double xScale, double yScale, double xTrans, double yTrans, Interpolation interpolation)
     Translates and resizes an image.
public  GridCoveragescale(GridCoverage source, double xScale, double yScale, double xTrans, double yTrans, Interpolation interpolation, BorderExtender extender)
     Translates and resizes an image.
public  CoverageselectSampleDimension(Coverage source, int[] sampleDimensions)
     Chooses N from a coverage and copies their sample data to the destination grid coverage in the order specified.
public  GridCoveragesubsampleAverage(GridCoverage source, double scaleX, double scaleY, Interpolation interpolation, BorderExtender be)
    
public  Coveragesubtract(Coverage source, double[] constants)
     Subtracts constants (one for each band) from every sample values of the source coverage.
public  CoveragesubtractFrom(Coverage source, double[] constants)
     Subtracts every sample values of the source coverage from constants (one for each band).

Field Detail
DEFAULT
final public static Operations DEFAULT(Code)
The default instance.




Constructor Detail
Operations
public Operations(RenderingHints hints)(Code)
Creates a new instance using the specified hints.
Parameters:
  hints - The hints, or null if none.




Method Detail
SubsampleAverage
public GridCoverage SubsampleAverage(GridCoverage source, double scaleX, double scaleY, Interpolation interpolation, BorderExtender be) throws CoverageProcessingException(Code)
Operations.subsampleAverage subsampleAverage
since:
   2.3



absolute
public Coverage absolute(Coverage source) throws CoverageProcessingException(Code)
Computes the mathematical absolute value of each sample value.
Parameters:
  source - The source coverage.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Absolute



add
public Coverage add(Coverage source, double[] constants) throws CoverageProcessingException(Code)
Adds constants (one for each band) to every sample values of the source coverage.
Parameters:
  source - The source coverage.
Parameters:
  constants - The constants to add to each band.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.AddConst



crop
public Coverage crop(Coverage Source, Envelope envelope) throws CoverageProcessingException(Code)
Crops the image to a specified rectangular area.
Parameters:
  source - The source coverage.
Parameters:
  envelope - The rectangular area to keep.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Crop
since:
   2.3



divideBy
public Coverage divideBy(Coverage source, double[] constants) throws CoverageProcessingException(Code)
Divides every sample values of the source coverage by constants (one for each band).
Parameters:
  source - The source coverage.
Parameters:
  constants - The constants to divides by.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.DivideByConst



doOperation
final protected Coverage doOperation(String operationName, Coverage source) throws OperationNotFoundException, CoverageProcessingException(Code)
Applies a process operation with default parameters. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage. The result as a coverage.
throws:
  OperationNotFoundException - if there is no operation named operationName .
throws:
  CoverageProcessingException - if the operation can't be applied.



doOperation
final protected Coverage doOperation(String operationName, Coverage source, String argumentName1, Object argumentValue1) throws OperationNotFoundException, InvalidParameterNameException, CoverageProcessingException(Code)
Applies a process operation with one parameter. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage.
Parameters:
  argumentName1 - The name of the first parameter to setParameterValue.
Parameters:
  argumentValue1 - The value for the first parameter. The result as a coverage.
throws:
  OperationNotFoundException - if there is no operation named operationName .
throws:
  InvalidParameterNameException - if there is no parameter with the specified name.
throws:
  CoverageProcessingException - if the operation can't be applied.



doOperation
final protected Coverage doOperation(String operationName, Coverage source, String argumentName1, Object argumentValue1, String argumentName2, Object argumentValue2) throws OperationNotFoundException, InvalidParameterNameException, CoverageProcessingException(Code)
Applies process operation with two parameters. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage.
Parameters:
  argumentName1 - The name of the first parameter to setParameterValue.
Parameters:
  argumentValue1 - The value for the first parameter.
Parameters:
  argumentName2 - The name of the second parameter to setParameterValue.
Parameters:
  argumentValue2 - The value for the second parameter. The result as a coverage.
throws:
  OperationNotFoundException - if there is no operation named operationName .
throws:
  InvalidParameterNameException - if there is no parameter with the specified name.
throws:
  CoverageProcessingException - if the operation can't be applied.



doOperation
final protected Coverage doOperation(String operationName, Coverage source, String argumentName1, Object argumentValue1, String argumentName2, Object argumentValue2, String argumentName3, Object argumentValue3) throws OperationNotFoundException, InvalidParameterNameException, CoverageProcessingException(Code)
Applies a process operation with three parameters. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage.
Parameters:
  argumentName1 - The name of the first parameter to setParameterValue.
Parameters:
  argumentValue1 - The value for the first parameter.
Parameters:
  argumentName2 - The name of the second parameter to setParameterValue.
Parameters:
  argumentValue2 - The value for the second parameter.
Parameters:
  argumentName3 - The name of the third parameter to setParameterValue.
Parameters:
  argumentValue3 - The value for the third parameter. The result as a coverage.
throws:
  OperationNotFoundException - if there is no operation named operationName .
throws:
  InvalidParameterNameException - if there is no parameter with the specified name.
throws:
  CoverageProcessingException - if the operation can't be applied.



doOperation
final protected Coverage doOperation(String operationName, Coverage source, String argumentName1, Object argumentValue1, String argumentName2, Object argumentValue2, String argumentName3, Object argumentValue3, String argumentName4, Object argumentValue4) throws OperationNotFoundException, InvalidParameterNameException, CoverageProcessingException(Code)
Applies a process operation with four parameters. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage. The result as a coverage.
throws:
  OperationNotFoundException - if there is no operation named operationName .
throws:
  InvalidParameterNameException - if there is no parameter with the specified name.
throws:
  CoverageProcessingException - if the operation can't be applied.
since:
   2.3



doOperation
final protected Coverage doOperation(String operationName, Coverage source, String argumentName1, Object argumentValue1, String argumentName2, Object argumentValue2, String argumentName3, Object argumentValue3, String argumentName4, Object argumentValue4, String argumentName5, Object argumentValue5) throws OperationNotFoundException, InvalidParameterNameException, CoverageProcessingException(Code)
Applies a process operation with five parameters. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage. The result as a coverage.
throws:
  OperationNotFoundException - if there is no operation named operationName .
throws:
  InvalidParameterNameException - if there is no parameter with the specified name.
throws:
  CoverageProcessingException - if the operation can't be applied.
since:
   2.3



doOperation
final protected Coverage doOperation(String operationName, Coverage source, String argumentName1, Object argumentValue1, String argumentName2, Object argumentValue2, String argumentName3, Object argumentValue3, String argumentName4, Object argumentValue4, String argumentName5, Object argumentValue5, String argumentName6, Object argumentValue6) throws OperationNotFoundException, InvalidParameterNameException, CoverageProcessingException(Code)
Applies a process operation with six parameters. This is a helper method for implementation of various convenience methods in this class.
Parameters:
  operationName - Name of the operation to be applied to the coverage.
Parameters:
  source - The source coverage. The result as a coverage.
throws:
  OperationNotFoundException - if there is no operation named operationName .
throws:
  InvalidParameterNameException - if there is no parameter with the specified name.
throws:
  CoverageProcessingException - if the operation can't be applied.
since:
   2.3



exp
public Coverage exp(Coverage source) throws CoverageProcessingException(Code)
Takes the exponential of the sample values of a coverage.
Parameters:
  source - The source coverage.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Exp



filteredSubsample
public GridCoverage filteredSubsample(GridCoverage source) throws CoverageProcessingException(Code)
Subsamples an image using the default values. The scale factor is 2 and the filter is a quadrant symmetric filter generated from a Gaussian kernel.
Parameters:
  source - The source coverage.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.FilteredSubsample
since:
   2.3



filteredSubsample
public GridCoverage filteredSubsample(GridCoverage source, int scaleX, int scaleY, float[] qsFilter) throws CoverageProcessingException(Code)
Subsamples an image by integral factors.
Parameters:
  source - The source coverage.
Parameters:
  scaleX - The scale factor along the x axis. The default value is 2.
Parameters:
  scaleY - The scale factor along the y axis. The default value is 2.
Parameters:
  qsFilter - The filter. Default to a quadrant symmetric filter generated froma Gaussian kernel
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.FilteredSubsample
since:
   2.3



filteredSubsample
public GridCoverage filteredSubsample(GridCoverage source, int scaleX, int scaleY, float[] qsFilter, Interpolation interpolation) throws CoverageProcessingException(Code)
Subsamples an image by integral factors.
Parameters:
  source - The source coverage.
Parameters:
  scaleX - The scale factor along the x axis. The default value is 2.
Parameters:
  scaleY - The scale factor along the y axis. The default value is 2.
Parameters:
  qsFilter - The filter. Default to a quadrant symmetric filter generated froma Gaussian kernel
Parameters:
  interpolation - The interpolation to use, or null for the default.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.FilteredSubsample
since:
   2.3 #filteredSubsample(GridCoverage,int,int,float[], * Interpolation,BorderExtender} null



filteredSubsample
public GridCoverage filteredSubsample(GridCoverage source, int scaleX, int scaleY, float[] qsFilter, Interpolation interpolation, BorderExtender be) throws CoverageProcessingException(Code)
Subsamples an image by integral factors. Operations.Operations(Hints)
Parameters:
  source - The source coverage.
Parameters:
  scaleX - The scale factor along the x axis. The default value is 2.
Parameters:
  scaleY - The scale factor along the y axis. The default value is 2.
Parameters:
  qsFilter - The filter. Default to a quadrant symmetric filter generated from aGaussian kernel
Parameters:
  interpolation - The interpolation to use, or null for the default.
Parameters:
  be - The border extender, or null for the default.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.FilteredSubsample
since:
   2.3



gradientMagnitude
public Coverage gradientMagnitude(Coverage source) throws CoverageProcessingException(Code)
Edge detector which computes the magnitude of the image gradient vector in two orthogonal directions. The default masks are the Sobel ones.
Parameters:
  source - The source coverage.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.GradientMagnitude



gradientMagnitude
public Coverage gradientMagnitude(Coverage source, KernelJAI mask1, KernelJAI mask2) throws CoverageProcessingException(Code)
Edge detector which computes the magnitude of the image gradient vector in two orthogonal directions.
Parameters:
  source - The source coverage.
Parameters:
  mask1 - The first mask.
Parameters:
  mask2 - The second mask, orthogonal to the first one.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.GradientMagnitude



interpolate
public GridCoverage interpolate(GridCoverage source, String type) throws CoverageProcessingException(Code)
Specifies the interpolation type to be used to interpolate values for points which fall between grid cells. The default value is nearest neighbor. The new interpolation type operates on all sample dimensions.
Parameters:
  source - The source coverage.
Parameters:
  type - The interpolation type. Possible values are "NearestNeighbor" , "Bilinear" and "Bicubic" .
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Interpolate



interpolate
public GridCoverage interpolate(GridCoverage source, Interpolation type) throws CoverageProcessingException(Code)
Specifies the interpolation type to be used to interpolate values for points which fall between grid cells. The default value is nearest neighbor. The new interpolation type operates on all sample dimensions.
Parameters:
  source - The source coverage.
Parameters:
  type - The interpolation type as a JAI interpolation object.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Interpolate



interpolate
public GridCoverage interpolate(GridCoverage source, Interpolation[] types) throws CoverageProcessingException(Code)
Specifies the interpolation types to be used to interpolate values for points which fall between grid cells. The first element in the array is the primary interpolation. All other elements are fallback to be used if the primary interpolation returns a NaN value. See org.geotools.coverage.processing.operation.Interpolate operation for details.
Parameters:
  source - The source coverage.
Parameters:
  types - The interpolation types and their fallback.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Interpolate



invert
public Coverage invert(Coverage source) throws CoverageProcessingException(Code)
Inverts the sample values of a coverage.
Parameters:
  source - The source coverage.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Invert



log
public Coverage log(Coverage source) throws CoverageProcessingException(Code)
Takes the natural logarithm of the sample values of a coverage.
Parameters:
  source - The source coverage.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Log



multiply
public Coverage multiply(Coverage source, double[] constants) throws CoverageProcessingException(Code)
Multiplies every sample values of the source coverage by constants (one for each band).
Parameters:
  source - The source coverage.
Parameters:
  constants - The constants to multiply to each band.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.MultiplyConst



nodataFilter
public GridCoverage nodataFilter(GridCoverage source) throws CoverageProcessingException(Code)
Replaces Float.NaN NaN values by the weighted average of neighbors values. This method uses the default padding and validity threshold.
Parameters:
  source - The source coverage.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.NodataFilter



nodataFilter
public GridCoverage nodataFilter(GridCoverage source, int padding, int validityThreshold) throws CoverageProcessingException(Code)
Replaces Float.NaN NaN values by the weighted average of neighbors values.
Parameters:
  source - The source coverage.
Parameters:
  padding - The number of pixels above, below, to the left and to the right of central NaN pixel to use for computing the average. The default value is 1.
Parameters:
  validityThreshold - The minimal number of valid values required for computing theaverage. The NaN value will be replaced by the average only if the numberof valid value is greater than or equals to this threshold. The default value is 4.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.NodataFilter



recolor
public GridCoverage recolor(GridCoverage source, Map[] colorMaps) throws CoverageProcessingException(Code)
Recolors a coverage to the specified colormaps.
Parameters:
  source - The source coverage.
Parameters:
  colorMaps - The color maps to apply.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Recolor
since:
   2.3MapColorMap



recolor
public GridCoverage recolor(GridCoverage source, ColorMap[] colorMaps) throws CoverageProcessingException(Code)
Recolors a coverage to the specified color maps.
Parameters:
  source - The source coverage.
Parameters:
  colorMaps - The color maps to apply.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Recolor
since:
   2.4



resample
public Coverage resample(Coverage source, CoordinateReferenceSystem crs) throws CoverageProcessingException(Code)
Resamples a coverage to the specified coordinate reference system.
Parameters:
  source - The source coverage.
Parameters:
  crs - The target coordinate reference system.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Resample



resample
public Coverage resample(GridCoverage source, CoordinateReferenceSystem crs, GridGeometry gridGeometry, Interpolation interpolationType) throws CoverageProcessingException(Code)
Resamples a grid coverage to the specified coordinate reference system and grid geometry.
Parameters:
  source - The source coverage.
Parameters:
  crs - The target coordinate reference system, or null for keeping it unchanged.
Parameters:
  gridGeometry - The grid geometry, or null for a default one.
Parameters:
  interpolationType - The interpolation type, or null for the default one.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Resample



rescale
public Coverage rescale(Coverage source, double[] constants, double[] offsets) throws CoverageProcessingException(Code)
Maps the sample values of a coverage from one range to another range.
Parameters:
  source - The source coverage.
Parameters:
  constants - The constants to multiply to each band.
Parameters:
  offsets - The constants to add to each band.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Rescale



scale
public GridCoverage scale(GridCoverage source, double xScale, double yScale, double xTrans, double yTrans) throws CoverageProcessingException(Code)
Translates and resizes an image.
Parameters:
  source - The source coverage.
Parameters:
  xScale - The scale factor along the x axis.
Parameters:
  yScale - The scale factor along the y axis.
Parameters:
  xTrans - The translation along the x axis.
Parameters:
  yTrans - The translation along the x axis.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Scale
since:
   2.3



scale
public GridCoverage scale(GridCoverage source, double xScale, double yScale, double xTrans, double yTrans, Interpolation interpolation) throws CoverageProcessingException(Code)
Translates and resizes an image.
Parameters:
  source - The source coverage.
Parameters:
  xScale - The scale factor along the x axis.
Parameters:
  yScale - The scale factor along the y axis.
Parameters:
  xTrans - The translation along the x axis.
Parameters:
  yTrans - The translation along the x axis.
Parameters:
  interpolation - The interpolation to use, or null for the default.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Scale #scale(GridCoverage,double,double,double,double, * Interpolation,BorderExtender} null
since:
   2.3



scale
public GridCoverage scale(GridCoverage source, double xScale, double yScale, double xTrans, double yTrans, Interpolation interpolation, BorderExtender extender) throws CoverageProcessingException(Code)
Translates and resizes an image. Operations.Operations(Hints)
Parameters:
  source - The source coverage.
Parameters:
  xScale - The scale factor along the x axis.
Parameters:
  yScale - The scale factor along the y axis.
Parameters:
  xTrans - The translation along the x axis.
Parameters:
  yTrans - The translation along the x axis.
Parameters:
  interpolation - The interpolation to use, or null for the default.
Parameters:
  be - The border extender, or null for the default.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.Scale
since:
   2.3



selectSampleDimension
public Coverage selectSampleDimension(Coverage source, int[] sampleDimensions) throws CoverageProcessingException(Code)
Chooses N from a coverage and copies their sample data to the destination grid coverage in the order specified.
Parameters:
  source - The source coverage.
Parameters:
  sampleDimensions - The sample dimensions to select.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.SelectSampleDimension



subsampleAverage
public GridCoverage subsampleAverage(GridCoverage source, double scaleX, double scaleY, Interpolation interpolation, BorderExtender be) throws CoverageProcessingException(Code)
Subsamples an image by averaging over a moving window Operations.Operations(Hints)
Parameters:
  source - The source coverage.
Parameters:
  scaleX - The scale factor along the x axis.
Parameters:
  scaleY - The scale factor along the y axis.
Parameters:
  interpolation - The interpolation to use, or null for the default.
Parameters:
  be - The border extender, or null for the default.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.SubsampleAverage
since:
   2.3



subtract
public Coverage subtract(Coverage source, double[] constants) throws CoverageProcessingException(Code)
Subtracts constants (one for each band) from every sample values of the source coverage.
Parameters:
  source - The source coverage.
Parameters:
  constants - The constants to subtract to each band.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.SubtractConst



subtractFrom
public Coverage subtractFrom(Coverage source, double[] constants) throws CoverageProcessingException(Code)
Subtracts every sample values of the source coverage from constants (one for each band).
Parameters:
  source - The source coverage.
Parameters:
  constants - The constants to subtract from.
throws:
  CoverageProcessingException - if the operation can't be applied.
See Also:   org.geotools.coverage.processing.operation.SubtractFromConst



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.