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


java.lang.Object
   javax.imageio.metadata.IIOMetadata
      org.geotools.image.io.metadata.GeographicMetadata

All known Subclasses:   org.geotools.image.io.netcdf.NetcdfMetadata,
GeographicMetadata
public class GeographicMetadata extends IIOMetadata (Code)
Geographic informations encoded in image as metadata. This class provides various methods for reading and writting attribute values in IIOMetadataNode according the . If some inconsistency are found while reading (for example if the coordinate system dimension doesn't match the envelope dimension), then the default implementation . We do not throw an exception because minor errors are not uncommon in geographic data, and we want to process the data on a "best effort" basis. However because every warnings are logged through the GeographicMetadata.warningOccurred method, subclasses can override this method if they want treat some warnings as fatal errors.
since:
   2.4
version:
   $Id: GeographicMetadata.java 27862 2007-11-12 19:51:19Z desruisseaux $
author:
   Martin Desruisseaux



Constructor Summary
public  GeographicMetadata()
     Creates a default metadata instance.
public  GeographicMetadata(ImageReader reader)
     Creates a default metadata instance for the given reader.
public  GeographicMetadata(ImageWriter writer)
     Creates a default metadata instance for the given writer.
public  GeographicMetadata(boolean standardMetadataFormatSupported, String nativeMetadataFormatName, String nativeMetadataFormatClassName, String[] extraMetadataFormatNames, String[] extraMetadataFormatClassNames)
     Constructs a geographic metadata instance with the given format names and format class names.

Method Summary
public  BandaddBand(String name)
     Creates a new band and returns it.
protected  LoggedFormatcreateLoggedFormat(Format format, Class type)
     Wraps the specified format in order to either parse fully a string, or log a warning.
final  LoggedFormatdateFormat()
     Returns a standard date format to be shared by MetadataAccessor .
public  NodegetAsTree(String formatName)
     Returns the root of a tree of metadata contained within this object according to the conventions defined by a given metadata format.
Parameters:
  formatName - the desired metadata format.
public  BandgetBand(int bandIndex)
     Returns the band at the specified index.
final  ChildListgetBands()
     Returns the list of all .
public  ImageGeometrygetGeometry()
     Returns the grid geometry.
public  LocalegetLocale()
     Returns the language to use when , or null if none has been set.
public  intgetNumBands()
     Returns the number of in the coverage.
public  ImageReferencinggetReferencing()
     Returns the grid referencing.
final  NodegetRootNode()
     Returns the root of a tree of metadata contained within this object according to the conventions defined by a given metadata format.
public  StringgetSampleType()
     Returns the sample type (typically or ), or null if none.
public  booleanisReadOnly()
     Returns false since this node support some write operations.
public  voidmergeTree(String formatName, Node root)
     Alters the internal state of this metadata from a tree whose syntax is defined by the given metadata format.
public  voidmergeTree(IIOMetadata metadata)
     Alters the internal state of this metadata from a tree defined by the specified metadata.
public  voidreset()
     Resets all the data stored in this object to default values.
public  voidsetSampleType(String type)
     Set the sample type for all .
public  StringtoString()
     Returns a string representation of this metadata, mostly for debugging purpose.
protected  voidwarningOccurred(LogRecord record)
     Invoked when a warning occured.


Constructor Detail
GeographicMetadata
public GeographicMetadata()(Code)
Creates a default metadata instance. This constructor defines no standard or native format. The only format defined is the one.



GeographicMetadata
public GeographicMetadata(ImageReader reader)(Code)
Creates a default metadata instance for the given reader.
Parameters:
  reader - The source image reader, or null if none.



GeographicMetadata
public GeographicMetadata(ImageWriter writer)(Code)
Creates a default metadata instance for the given writer.
Parameters:
  writer - The target image writer, or null if none.



GeographicMetadata
public GeographicMetadata(boolean standardMetadataFormatSupported, String nativeMetadataFormatName, String nativeMetadataFormatClassName, String[] extraMetadataFormatNames, String[] extraMetadataFormatClassNames)(Code)
Constructs a geographic metadata instance with the given format names and format class names. This constructor passes the arguments to the unchanged.
Parameters:
  standardMetadataFormatSupported - true if this object can return or accepta DOM tree using the standard metadata format.
Parameters:
  nativeMetadataFormatName - The name of the native metadata, or null if none.
Parameters:
  nativeMetadataFormatClassName - The name of the class of the native metadata format,or null if none.
Parameters:
  extraMetadataFormatNames - Additional formats supported by this object,or null if none.
Parameters:
  extraMetadataFormatClassNames - The class names of any additional formatssupported by this object, or null if none.




Method Detail
addBand
public Band addBand(String name)(Code)
Creates a new band and returns it.
Parameters:
  name - The name for the new band.



createLoggedFormat
protected LoggedFormat createLoggedFormat(Format format, Class type)(Code)
Wraps the specified format in order to either parse fully a string, or log a warning.
Parameters:
  format - The format to use for parsing and formatting.
Parameters:
  type - The expected type of parsed values.



dateFormat
final LoggedFormat dateFormat()(Code)
Returns a standard date format to be shared by MetadataAccessor .



getAsTree
public Node getAsTree(String formatName) throws IllegalArgumentException(Code)
Returns the root of a tree of metadata contained within this object according to the conventions defined by a given metadata format.
Parameters:
  formatName - the desired metadata format. The node forming the root of metadata tree.
throws:
  IllegalArgumentException - if the format name is null or is notone of the names returned by GeographicMetadata.getMetadataFormatNames()getMetadataFormatNames().



getBand
public Band getBand(int bandIndex) throws IndexOutOfBoundsException(Code)
Returns the band at the specified index.
Parameters:
  bandIndex - the band index, ranging from 0 inclusive to GeographicMetadata.getNumBands exclusive.
throws:
  IndexOutOfBoundsException - if the index is out of bounds.



getBands
final ChildList getBands()(Code)
Returns the list of all .



getGeometry
public ImageGeometry getGeometry()(Code)
Returns the grid geometry.



getLocale
public Locale getLocale()(Code)
Returns the language to use when , or null if none has been set. The default implementation delegates to ImageReader.getLocale or ImageWriter.getLocale if possible, or returns null otherwise.



getNumBands
public int getNumBands()(Code)
Returns the number of in the coverage.



getReferencing
public ImageReferencing getReferencing()(Code)
Returns the grid referencing.



getRootNode
final Node getRootNode()(Code)
Returns the root of a tree of metadata contained within this object according to the conventions defined by a given metadata format.



getSampleType
public String getSampleType()(Code)
Returns the sample type (typically or ), or null if none. This type applies to all .



isReadOnly
public boolean isReadOnly()(Code)
Returns false since this node support some write operations.



mergeTree
public void mergeTree(String formatName, Node root) throws IIOInvalidTreeException(Code)
Alters the internal state of this metadata from a tree whose syntax is defined by the given metadata format. The default implementation simply replaces all existing state with the contents of the given tree.
Parameters:
  formatName - The desired metadata format.
Parameters:
  root - An XML DOM Node object forming the root of a tree.



mergeTree
public void mergeTree(IIOMetadata metadata) throws IIOInvalidTreeException(Code)
Alters the internal state of this metadata from a tree defined by the specified metadata. The default implementation expect the format.
Parameters:
  metadata - The metadata to merge to this object.



reset
public void reset()(Code)
Resets all the data stored in this object to default values.



setSampleType
public void setSampleType(String type)(Code)
Set the sample type for all . Valid types include and .
Parameters:
  type - The sample type, or null if none.



toString
public String toString()(Code)
Returns a string representation of this metadata, mostly for debugging purpose.



warningOccurred
protected void warningOccurred(LogRecord record)(Code)
Invoked when a warning occured. This method is invoked when some inconsistency has been detected in the geographic metadata. The default implementation delegates to GeographicImageReader.warningOccurred if possible, or send the record to the "org.geotools.image.io.metadata" logger otherwise.

Subclasses may override this method if more processing is wanted, or for throwing exception if some warnings should be considered as fatal errors.




Fields inherited from javax.imageio.metadata.IIOMetadata
protected IIOMetadataController controller(Code)(Java Doc)
protected IIOMetadataController defaultController(Code)(Java Doc)
protected String[] extraMetadataFormatClassNames(Code)(Java Doc)
protected String[] extraMetadataFormatNames(Code)(Java Doc)
protected String nativeMetadataFormatClassName(Code)(Java Doc)
protected String nativeMetadataFormatName(Code)(Java Doc)
protected boolean standardFormatSupported(Code)(Java Doc)

Methods inherited from javax.imageio.metadata.IIOMetadata
public boolean activateController()(Code)(Java Doc)
abstract public Node getAsTree(String formatName)(Code)(Java Doc)
public IIOMetadataController getController()(Code)(Java Doc)
public IIOMetadataController getDefaultController()(Code)(Java Doc)
public String[] getExtraMetadataFormatNames()(Code)(Java Doc)
public IIOMetadataFormat getMetadataFormat(String formatName)(Code)(Java Doc)
public String[] getMetadataFormatNames()(Code)(Java Doc)
public String getNativeMetadataFormatName()(Code)(Java Doc)
protected IIOMetadataNode getStandardChromaNode()(Code)(Java Doc)
protected IIOMetadataNode getStandardCompressionNode()(Code)(Java Doc)
protected IIOMetadataNode getStandardDataNode()(Code)(Java Doc)
protected IIOMetadataNode getStandardDimensionNode()(Code)(Java Doc)
protected IIOMetadataNode getStandardDocumentNode()(Code)(Java Doc)
protected IIOMetadataNode getStandardTextNode()(Code)(Java Doc)
protected IIOMetadataNode getStandardTileNode()(Code)(Java Doc)
protected IIOMetadataNode getStandardTransparencyNode()(Code)(Java Doc)
final protected IIOMetadataNode getStandardTree()(Code)(Java Doc)
public boolean hasController()(Code)(Java Doc)
abstract public boolean isReadOnly()(Code)(Java Doc)
public boolean isStandardMetadataFormatSupported()(Code)(Java Doc)
abstract public void mergeTree(String formatName, Node root) throws IIOInvalidTreeException(Code)(Java Doc)
abstract public void reset()(Code)(Java Doc)
public void setController(IIOMetadataController controller)(Code)(Java Doc)
public void setFromTree(String formatName, Node root) throws IIOInvalidTreeException(Code)(Java Doc)

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.