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


org.geotools.coverage.AbstractCoverage
   org.geotools.coverage.SpatioTemporalCoverage3D

SpatioTemporalCoverage3D
public class SpatioTemporalCoverage3D extends AbstractCoverage (Code)
Convenience view of an other coverage with x, y and time axis. This class provides evaluate methods in two versions: the usual one expecting a complete , and an other one expecting the and the as separated arguments. This class will detects by itself which dimension is the time axis. It will also tries to uses the Point2D 's value for or west direction, and the value for or south direction. The dimension mapping can be examined with the SpatioTemporalCoverage3D.toSourceDimension method.

Note: This class is not thread safe for performance reasons. If desired, users should create one instance of SpatioTemporalCoverage3D for each thread.
since:
   2.1
version:
   $Id: SpatioTemporalCoverage3D.java 25787 2007-06-10 16:04:55Z desruisseaux $
author:
   Martin Desruisseaux



Constructor Summary
public  SpatioTemporalCoverage3D(CharSequence name, Coverage coverage)
     Constructs a new coverage.

Method Summary
final public  boolean[]evaluate(Point2D point, Date time, boolean[] dest)
     Returns a sequence of boolean values for a given point in the coverage.
Parameters:
  point - The coordinate point where to evaluate.
Parameters:
  time - The date where to evaluate.
Parameters:
  dest - An array in which to store values, or null to create a new array.
final public  byte[]evaluate(Point2D point, Date time, byte[] dest)
     Returns a sequence of byte values for a given point in the coverage.
Parameters:
  point - The coordinate point where to evaluate.
Parameters:
  time - The date where to evaluate.
Parameters:
  dest - An array in which to store values, or null to create a new array.
final public  int[]evaluate(Point2D point, Date time, int[] dest)
     Returns a sequence of integer values for a given point in the coverage.
Parameters:
  point - The coordinate point where to evaluate.
Parameters:
  time - The date where to evaluate.
Parameters:
  dest - An array in which to store values, or null to create a new array.
final public  float[]evaluate(Point2D point, Date time, float[] dest)
     Returns a sequence of float values for a given point in the coverage.
Parameters:
  point - The coordinate point where to evaluate.
Parameters:
  time - The date where to evaluate.
Parameters:
  dest - An array in which to store values, or null to create a new array.
final public  double[]evaluate(Point2D point, Date time, double[] dest)
     Returns a sequence of double values for a given point in the coverage.
Parameters:
  point - The coordinate point where to evaluate.
Parameters:
  time - The date where to evaluate.
Parameters:
  dest - An array in which to store values, or null to create a new array.
final public  Objectevaluate(DirectPosition coord)
     Returns the value vector for a given point in the coverage.
final public  boolean[]evaluate(DirectPosition coord, boolean[] dest)
     Returns a sequence of boolean values for a given point in the coverage.
final public  byte[]evaluate(DirectPosition coord, byte[] dest)
     Returns a sequence of byte values for a given point in the coverage.
final public  int[]evaluate(DirectPosition coord, int[] dest)
     Returns a sequence of integer values for a given point in the coverage.
final public  float[]evaluate(DirectPosition coord, float[] dest)
     Returns a sequence of float values for a given point in the coverage.
final public  double[]evaluate(DirectPosition coord, double[] dest)
     Returns a sequence of double values for a given point in the coverage.
protected  Dimension2DgetDefaultPixelSize()
     Returns the default pixel size for images to be produced by SpatioTemporalCoverage3D.getRenderableImage(Date) . This method is invoked by RenderableImage.createDefaultRendering for computing a default image size.
public  GeographicBoundingBoxgetGeographicBoundingBox()
     Returns the geographic bounding box.
public  GridCoverage2DgetGridCoverage2D(Date time)
     Returns a 2 dimensional grid coverage for the given date.
public  intgetNumSampleDimensions()
     The number of sample dimensions in the coverage.
public  RenderableImagegetRenderableImage(Date date)
     Returns 2D view of this grid coverage at the given date.
public  SampleDimensiongetSampleDimension(int index)
     Retrieve sample dimension information for the coverage.
Parameters:
  index - Index for sample dimension to retrieve.
public  RangegetTimeRange()
     Returns the time range.
final public  CoveragegetWrappedCoverage()
     Returns the coverage specified at construction time.
final public  DatetoDate(DirectPosition position)
     Returns the date for the specified direct position.
final public  DirectPositiontoDirectPosition(Point2D point, Date date)
     Returns a coordinate point for the given spatial position and date.
Parameters:
  point - The spatial position.
Parameters:
  date - The date.
final public  Point2DtoPoint2D(DirectPosition position)
     Returns the spatial coordinate for the specified direct position.
final public  inttoSourceDimension(int dimension)
     Returns the dimension in the wrapped coverage for the specified dimension in this coverage. The evaluate(Point2D, Date) methods expect ordinates in the (xyt) order. The evaluate(DirectPosition) methods and the wrapped coverage way uses a different order.
Parameters:
  dimension - A dimension in this coverage:0 for x,1 for y or2 for t.


Constructor Detail
SpatioTemporalCoverage3D
public SpatioTemporalCoverage3D(CharSequence name, Coverage coverage) throws IllegalArgumentException(Code)
Constructs a new coverage. The coordinate reference system will be the same than the wrapped coverage, which must be three dimensional. This CRS must have a component.
Parameters:
  name - The name for this coverage, or null for the same than coverage .
Parameters:
  coverage - The source coverage.
throws:
  IllegalArgumentException - if the coverage CRS doesn't have a temporal component.




Method Detail
evaluate
final public boolean[] evaluate(Point2D point, Date time, boolean[] dest) throws CannotEvaluateException(Code)
Returns a sequence of boolean values for a given point in the coverage.
Parameters:
  point - The coordinate point where to evaluate.
Parameters:
  time - The date where to evaluate.
Parameters:
  dest - An array in which to store values, or null to create a new array. The dest array, or a newly created array if dest was null.
throws:
  PointOutsideCoverageException - if point or time is outside coverage.
throws:
  CannotEvaluateException - if the computation failed for some other reason.



evaluate
final public byte[] evaluate(Point2D point, Date time, byte[] dest) throws CannotEvaluateException(Code)
Returns a sequence of byte values for a given point in the coverage.
Parameters:
  point - The coordinate point where to evaluate.
Parameters:
  time - The date where to evaluate.
Parameters:
  dest - An array in which to store values, or null to create a new array. The dest array, or a newly created array if dest was null.
throws:
  PointOutsideCoverageException - if point or time is outside coverage.
throws:
  CannotEvaluateException - if the computation failed for some other reason.



evaluate
final public int[] evaluate(Point2D point, Date time, int[] dest) throws CannotEvaluateException(Code)
Returns a sequence of integer values for a given point in the coverage.
Parameters:
  point - The coordinate point where to evaluate.
Parameters:
  time - The date where to evaluate.
Parameters:
  dest - An array in which to store values, or null to create a new array. The dest array, or a newly created array if dest was null.
throws:
  PointOutsideCoverageException - if point or time is outside coverage.
throws:
  CannotEvaluateException - if the computation failed for some other reason.



evaluate
final public float[] evaluate(Point2D point, Date time, float[] dest) throws CannotEvaluateException(Code)
Returns a sequence of float values for a given point in the coverage.
Parameters:
  point - The coordinate point where to evaluate.
Parameters:
  time - The date where to evaluate.
Parameters:
  dest - An array in which to store values, or null to create a new array. The dest array, or a newly created array if dest was null.
throws:
  PointOutsideCoverageException - if point or time is outside coverage.
throws:
  CannotEvaluateException - if the computation failed for some other reason.



evaluate
final public double[] evaluate(Point2D point, Date time, double[] dest) throws CannotEvaluateException(Code)
Returns a sequence of double values for a given point in the coverage.
Parameters:
  point - The coordinate point where to evaluate.
Parameters:
  time - The date where to evaluate.
Parameters:
  dest - An array in which to store values, or null to create a new array. The dest array, or a newly created array if dest was null.
throws:
  PointOutsideCoverageException - if point or time is outside coverage.
throws:
  CannotEvaluateException - if the computation failed for some other reason.



evaluate
final public Object evaluate(DirectPosition coord) throws CannotEvaluateException(Code)
Returns the value vector for a given point in the coverage.
Parameters:
  coord - The coordinate point where to evaluate.
throws:
  PointOutsideCoverageException - if coord is outside coverage.
throws:
  CannotEvaluateException - if the computation failed for some other reason.



evaluate
final public boolean[] evaluate(DirectPosition coord, boolean[] dest) throws CannotEvaluateException(Code)
Returns a sequence of boolean values for a given point in the coverage.



evaluate
final public byte[] evaluate(DirectPosition coord, byte[] dest) throws CannotEvaluateException(Code)
Returns a sequence of byte values for a given point in the coverage.



evaluate
final public int[] evaluate(DirectPosition coord, int[] dest) throws CannotEvaluateException(Code)
Returns a sequence of integer values for a given point in the coverage.



evaluate
final public float[] evaluate(DirectPosition coord, float[] dest) throws CannotEvaluateException(Code)
Returns a sequence of float values for a given point in the coverage.



evaluate
final public double[] evaluate(DirectPosition coord, double[] dest) throws CannotEvaluateException(Code)
Returns a sequence of double values for a given point in the coverage.



getDefaultPixelSize
protected Dimension2D getDefaultPixelSize()(Code)
Returns the default pixel size for images to be produced by SpatioTemporalCoverage3D.getRenderableImage(Date) . This method is invoked by RenderableImage.createDefaultRendering for computing a default image size. The default implementation for this method always returns null . Subclasses should overrides this method in order to provides a pixel size better suited to their data. The default pixel size, or null if no default is provided.



getGeographicBoundingBox
public GeographicBoundingBox getGeographicBoundingBox() throws TransformException(Code)
Returns the geographic bounding box. The bounding box coordinates uses the CRS. The geographic bounding box.
throws:
  TransformException - if the envelope can't be transformed.



getGridCoverage2D
public GridCoverage2D getGridCoverage2D(Date time) throws CannotEvaluateException(Code)
Returns a 2 dimensional grid coverage for the given date. The grid geometry will be computed in order to produces image with the , if any.
Parameters:
  time - The date where to evaluate. The grid coverage at the specified time, or null if the requested date fall in a hole in the data.
throws:
  PointOutsideCoverageException - if time is outside coverage.
throws:
  CannotEvaluateException - if the computation failed for some other reason.
See Also:   SpatioTemporalCoverage3D.getRenderableImage(Date)
See Also:   RenderableImage.createDefaultRendering return



getNumSampleDimensions
public int getNumSampleDimensions()(Code)
The number of sample dimensions in the coverage. For grid coverages, a sample dimension is a band. The number of sample dimensions in the coverage.



getRenderableImage
public RenderableImage getRenderableImage(Date date)(Code)
Returns 2D view of this grid coverage at the given date. For images produced by the , the size will be computed from the , if any.
Parameters:
  date - The date where to evaluate the images. The renderable image.



getSampleDimension
public SampleDimension getSampleDimension(int index) throws IndexOutOfBoundsException(Code)
Retrieve sample dimension information for the coverage.
Parameters:
  index - Index for sample dimension to retrieve. Indices are numbered 0 to(-1). Sample dimension information for the coverage.
throws:
  IndexOutOfBoundsException - if index is out of bounds.



getTimeRange
public Range getTimeRange()(Code)
Returns the time range. The returned range contains Date objects.



getWrappedCoverage
final public Coverage getWrappedCoverage()(Code)
Returns the coverage specified at construction time.
since:
   2.2



toDate
final public Date toDate(DirectPosition position)(Code)
Returns the date for the specified direct position. This method (together with SpatioTemporalCoverage3D.toPoint2D toPoint2D ) is the converse of SpatioTemporalCoverage3D.toDirectPosition toDirectPosition .
Parameters:
  position - The direct position, as computed bySpatioTemporalCoverage3D.toDirectPosition toDirectPosition. The date.
See Also:   SpatioTemporalCoverage3D.toPoint2D
See Also:   SpatioTemporalCoverage3D.toDirectPosition
since:
   2.2



toDirectPosition
final public DirectPosition toDirectPosition(Point2D point, Date date)(Code)
Returns a coordinate point for the given spatial position and date.
Parameters:
  point - The spatial position.
Parameters:
  date - The date. The coordinate point.
See Also:   SpatioTemporalCoverage3D.toDate
See Also:   SpatioTemporalCoverage3D.toPoint2D
since:
   2.2



toPoint2D
final public Point2D toPoint2D(DirectPosition position)(Code)
Returns the spatial coordinate for the specified direct position. This method (together with SpatioTemporalCoverage3D.toDate toDate ) is the converse of SpatioTemporalCoverage3D.toDirectPosition toDirectPosition .
Parameters:
  position - The direct position, as computed bySpatioTemporalCoverage3D.toDirectPosition toDirectPosition. The spatial coordinate.
See Also:   SpatioTemporalCoverage3D.toDate
See Also:   SpatioTemporalCoverage3D.toDirectPosition
since:
   2.2



toSourceDimension
final public int toSourceDimension(int dimension)(Code)
Returns the dimension in the wrapped coverage for the specified dimension in this coverage. The evaluate(Point2D, Date) methods expect ordinates in the (xyt) order. The evaluate(DirectPosition) methods and the wrapped coverage way uses a different order.
Parameters:
  dimension - A dimension in this coverage:0 for x,1 for y or2 for t. The corresponding dimension in the wrapped coverage.
See Also:   SpatioTemporalCoverage3D.toDate
See Also:   SpatioTemporalCoverage3D.toPoint2D
See Also:   SpatioTemporalCoverage3D.toDirectPosition



Fields inherited from org.geotools.coverage.AbstractCoverage
final protected CoordinateReferenceSystem crs(Code)(Java Doc)

Methods inherited from org.geotools.coverage.AbstractCoverage
public boolean dispose(boolean force)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
public Set evaluate(DirectPosition coord, Set list)(Code)(Java Doc)
public boolean[] evaluate(DirectPosition coord, boolean[] dest) throws CannotEvaluateException(Code)(Java Doc)
public byte[] evaluate(DirectPosition coord, byte[] dest) throws CannotEvaluateException(Code)(Java Doc)
public int[] evaluate(DirectPosition coord, int[] dest) throws CannotEvaluateException(Code)(Java Doc)
public float[] evaluate(DirectPosition coord, float[] dest) throws CannotEvaluateException(Code)(Java Doc)
public double[] evaluate(DirectPosition coord, double[] dest) throws CannotEvaluateException(Code)(Java Doc)
public Set evaluateInverse(Record v)(Code)(Java Doc)
public List find(DirectPosition p, int limit)(Code)(Java Doc)
public GeometryValuePair find(DirectPosition p)(Code)(Java Doc)
public CommonPointRule getCommonPointRule()(Code)(Java Doc)
public CoordinateReferenceSystem getCoordinateReferenceSystem()(Code)(Java Doc)
final public int getDimension()(Code)(Java Doc)
public InternationalString[] getDimensionNames()(Code)(Java Doc)
final public String[] getDimensionNames(Locale locale)(Code)(Java Doc)
public Set getDomainElements()(Code)(Java Doc)
public Set getDomainExtents()(Code)(Java Doc)
public Envelope getEnvelope()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public String[] getMetadataNames()(Code)(Java Doc)
public String getMetadataValue(String name) throws MetadataNameNotFoundException(Code)(Java Doc)
public InternationalString getName()(Code)(Java Doc)
public Set getRangeElements()(Code)(Java Doc)
public RecordType getRangeType()(Code)(Java Doc)
public RenderableImage getRenderableImage(int xAxis, int yAxis)(Code)(Java Doc)
public List getSources()(Code)(Java Doc)
public Set list()(Code)(Java Doc)
public Set select(Geometry arg0, Period arg1)(Code)(Java Doc)
public void show(int xAxis, int yAxis)(Code)(Java Doc)
public void show(String title, int xAxis, int yAxis)(Code)(Java Doc)
public void show(String title)(Code)(Java Doc)
public void show()(Code)(Java Doc)
public String toString()(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.