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


java.lang.Object
   org.geotools.coverage.grid.ViewType

ViewType
final public class ViewType implements Serializable(Code)
Enumerates different "views" over a given coverage. Coverage views represent the same data in different ways. Some views are more appropriate than others depending of the kind of work to be performed. For example numerical computations on meteorological or oceanographical data should be performed on the view, while renderings are better performed with the view.

Different views are sometime synonymous for a given coverage. For example the and views are identical when the coverage values are unsigned 8 or 16 bits integers, but distincts if the native values are signed integers. This is because in the later case, the negative values can not be processed directly by an .
since:
   2.4
version:
   $Id: ViewType.java 23398 2006-12-12 05:57:00Z desruisseaux $
author:
   Martin Desruisseaux



Field Summary
final public static  ViewTypeDISPLAYABLE
     Coverage data are compatible with common Java2D . This usually imply that values are restricted to unsigned integers.
final public static  ViewTypeGEOPHYSICS
     Coverage data are the values of some geophysics phenomenon, for example an elevation in metres or a temperature in Celsius degrees.
final public static  ViewTypeNATIVE
     Coverage data come directly from some source (typically a file) and are unprocessed. This view doesn't have any of the restrictions imposed by other views: values may be integers or floating point values, negative values are allowed, and missing data may be represented by "pad values" like -9999.
final public static  ViewTypePHOTOGRAPHIC
     Coverage data have no meaning other than visual color.


Method Summary
public  booleanequals(Object object)
     Compares this enum with the specified object for equality.
public  inthashCode()
     Returns a hash value for this enum.
public  booleanisColorSpaceConversionAllowed()
     Returns true if the replacement of is allowed.
public  booleanisInterpolationAllowed()
     Returns true if interpolations other than are allowed.
public  StringtoString()
     Returns a string representation of this enum.

Field Detail
DISPLAYABLE
final public static ViewType DISPLAYABLE(Code)
Coverage data are compatible with common Java2D . This usually imply that values are restricted to unsigned integers. This view is often identical to the view if the values on the originating device were already unsigned.

Conversions to the RGB color space are not allowed, because the data are often related to values in some way. For example the coverage may contains Sea Surface Temperature (SST) data packed as 8 bits integers and convertible to degrees Celsius using the following formula: temperature = pixel_value × 0.15 - 3. A conversion to RGB space would lose this relationship, and any oceanographical calculation accidentaly performed on this space would produce wrong results.

Interpolations other than are not allowed, because some special values are often used as pad values for missing data. An interpolation between a "real" value (for example a value convertible to the above-cited SST) and "pad" value would produce a wrong result.




GEOPHYSICS
final public static ViewType GEOPHYSICS(Code)
Coverage data are the values of some geophysics phenomenon, for example an elevation in metres or a temperature in Celsius degrees. Values are typically floating point numbers ( float or double primitive type), but this is not mandatory if there is never fractional parts or missing values in a particular coverage.

If the coverage contains some "no data" values, then those missing values must be represented by Float.NaN or Double.NaN constant, or any other value in the NaN range as . Real numbers used as "pad values" like -9999 are not allowed.

Interpolations ( , , etc.) are allowed. If there is some missing values around the interpolation point, then the result is a NaN value.

Conversions to RGB color space is not allowed. All computations (including interpolations) must be performed in this geophysics space.




NATIVE
final public static ViewType NATIVE(Code)
Coverage data come directly from some source (typically a file) and are unprocessed. This view doesn't have any of the restrictions imposed by other views: values may be integers or floating point values, negative values are allowed, and missing data may be represented by "pad values" like -9999. This view is generally not suitable for renderings or numerical computations. However in some special cases, this view may be identical to an other view (see those other views for a more exhaustive list of their conditions):

  • If the values are stored as unsigned integers, then the native view may be identical to the view.
  • If all missing values are represented by , then the native view may be identical to the view.

Interpolations other than are not allowed. Conversions to the RGB color space are not allowed neither, for the same reasons than the view.




PHOTOGRAPHIC
final public static ViewType PHOTOGRAPHIC(Code)
Coverage data have no meaning other than visual color. It is not an elevation map for example (in which case the coverage would rather be described as ).

Conversions to the RGB color space are allowed. Because the coverage has no geophysics meaning other than visual color, there is no significant data lose in the replacement of .

Interpolation are not allowed on indexed values. They must be performed on the RGB or similar color space instead.






Method Detail
equals
public boolean equals(Object object)(Code)
Compares this enum with the specified object for equality.



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



isColorSpaceConversionAllowed
public boolean isColorSpaceConversionAllowed()(Code)
Returns true if the replacement of is allowed. Such replacements may occurs during some operations requirying interpolations, like , in order to produce images that look nicer. However such replacements should be attempted only in last resort (interpolations in the space should be preferred) and only if the coverage data don't have any meaning other than visual color, as in images.
See Also:   JAI.KEY_REPLACE_INDEX_COLOR_MODEL



isInterpolationAllowed
public boolean isInterpolationAllowed()(Code)
Returns true if interpolations other than are allowed. Those interpolations require the following conditions:

  • Values are either values, or related to geophysics values through a linear relationship over all the range of possible values (including "no data" values).
  • There is no "pad values". Missing values, if any, are represented by some Float.NaN NaN values}.

This method may conservatively returns false if unsure. If interpolations are wanted but not allowed, then users should try to convert the coverage to the space, which supports interpolations. If no geophysics view is available, then users may convert the image to the RGB space if . Interpolations in the RGB space produce nice-looking images, but the pixel values lose all geophysical meaning. If the color space conversion is not allowed, then then users should stick with interpolation.




toString
public String toString()(Code)
Returns a string representation of this enum.



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.