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


java.lang.Object
   org.geotools.coverage.io.AbstractGridCoverageReader
      org.geotools.coverage.io.ExoreferencedGridCoverageReader

ExoreferencedGridCoverageReader
public class ExoreferencedGridCoverageReader extends AbstractGridCoverageReader (Code)
An implementation of AbstractGridCoverageReader using informations parsed by a MetadataBuilder object. This reader is typically used for format that stores pixel values and geographic metadata in separated files. For example, pixel values may be stored as a PNG images ou a RAW binary file, and geographic metadata (coordinate system, geographic location, etc.) may be stored in a separated text file. The text file is parsed by a MetadataBuilder object, while the pixel values are read by a ImageReader object.
since:
   2.2
version:
   $Id: ExoreferencedGridCoverageReader.java 25699 2007-05-31 15:55:07Z desruisseaux $
author:
   Martin Desruisseaux


Field Summary
final protected  MetadataBuildermetadata
     The object to use for parsing the meta-data.

Constructor Summary
public  ExoreferencedGridCoverageReader(Hints hints, String formatName, MetadataBuilder parser)
     Constructs a new ExoreferencedGridCoverageReader using the specified MetadataBuilder .
Parameters:
  hints - The factory hints to use.
Parameters:
  formatName - The name for this format.
public  ExoreferencedGridCoverageReader(Hints hints, String formatName, String extension, MetadataBuilder parser)
     Constructs a new ExoreferencedGridCoverageReader using the specified MetadataBuilder .
Parameters:
  hints - The factory hints to use.
Parameters:
  formatName - The name for this format.

Method Summary
public synchronized  CoordinateReferenceSystemgetCoordinateReferenceSystem(int index)
     Returns the coordinate system for the GridCoverage to be read. The default implementation invokes . .
Parameters:
  index - The index of the image to be queried.
public synchronized  EnvelopegetEnvelope(int index)
     Returns the envelope for the GridCoverage to be read. The default implementation invokes . .
Parameters:
  index - The index of the image to be queried.
public synchronized  GridRangegetGridRange(int index)
     Returns the grid range for the GridCoverage to be read. The default implementation invokes . .
Parameters:
  index - The index of the image to be queried.
public synchronized  GridSampleDimension[]getSampleDimensions(int index)
     Returns the sample dimensions for each band of the GridCoverage to be read.
public synchronized  voidreset()
     Restores the coverage reader to its initial state.
public synchronized  voidsetInput(Object input, boolean seekForwardOnly)
     Sets the input source to the given object.
public synchronized  voidsetLocale(Locale locale)
     Sets the current of this grid coverage reader to the given value.
protected  StringtoImageFileName(String filename)
     Returns the filename for image data.

Field Detail
metadata
final protected MetadataBuilder metadata(Code)
The object to use for parsing the meta-data.




Constructor Detail
ExoreferencedGridCoverageReader
public ExoreferencedGridCoverageReader(Hints hints, String formatName, MetadataBuilder parser)(Code)
Constructs a new ExoreferencedGridCoverageReader using the specified MetadataBuilder .
Parameters:
  hints - The factory hints to use.
Parameters:
  formatName - The name for this format. This format name should beunderstood by ImageIO.getImageReadersByFormatName(String),unless ExoreferencedGridCoverageReader.getImageReaders is overridden.
Parameters:
  parser - The MetadataBuilder to use for reading geographic metadata.



ExoreferencedGridCoverageReader
public ExoreferencedGridCoverageReader(Hints hints, String formatName, String extension, MetadataBuilder parser)(Code)
Constructs a new ExoreferencedGridCoverageReader using the specified MetadataBuilder .
Parameters:
  hints - The factory hints to use.
Parameters:
  formatName - The name for this format. This format name should beunderstood by ImageIO.getImageReadersByFormatName(String),unless ExoreferencedGridCoverageReader.getImageReaders is overridden.
Parameters:
  extension - Filename's extensions for file of this format.
Parameters:
  parser - The MetadataBuilder to use for reading geographic metadata.




Method Detail
getCoordinateReferenceSystem
public synchronized CoordinateReferenceSystem getCoordinateReferenceSystem(int index) throws IOException(Code)
Returns the coordinate system for the GridCoverage to be read. The default implementation invokes . .
Parameters:
  index - The index of the image to be queried. The coordinate system for the GridCoverage at the specified index.
throws:
  IllegalStateException - if the input source has not been set.
throws:
  IndexOutOfBoundsException - if the supplied index is out of bounds.
throws:
  IOException - if an error occurs reading the width information fromthe input source.



getEnvelope
public synchronized Envelope getEnvelope(int index) throws IOException(Code)
Returns the envelope for the GridCoverage to be read. The default implementation invokes . .
Parameters:
  index - The index of the image to be queried. The envelope for the GridCoverage at the specified index.
throws:
  IllegalStateException - if the input source has not been set.
throws:
  IndexOutOfBoundsException - if the supplied index is out of bounds.
throws:
  IOException - if an error occurs reading the width information fromthe input source.



getGridRange
public synchronized GridRange getGridRange(int index) throws IOException(Code)
Returns the grid range for the GridCoverage to be read. The default implementation invokes . .
Parameters:
  index - The index of the image to be queried. The grid range for the GridCoverage at the specified index.
throws:
  IllegalStateException - if the input source has not been set.
throws:
  IndexOutOfBoundsException - if the supplied index is out of bounds.
throws:
  IOException - if an error occurs reading the width information fromthe input source.



getSampleDimensions
public synchronized GridSampleDimension[] getSampleDimensions(int index) throws IOException(Code)
Returns the sample dimensions for each band of the GridCoverage to be read. If sample dimensions are not known, then this method returns null . The default implementation invokes . .
Parameters:
  index - The index of the image to be queried. The category lists for the GridCoverage at the specified index.This array's length must be equals to the number of bands in GridCoverage.
throws:
  IllegalStateException - if the input source has not been set.
throws:
  IndexOutOfBoundsException - if the supplied index is out of bounds.
throws:
  IOException - if an error occurs reading the width information fromthe input source.



reset
public synchronized void reset() throws IOException(Code)
Restores the coverage reader to its initial state.
throws:
  IOException - if an error occurs while disposing resources.



setInput
public synchronized void setInput(Object input, boolean seekForwardOnly) throws IOException(Code)
Sets the input source to the given object. The input must be File or an URL object. The input source must be the metadata file or URL. The image file or URL will be derived from the metadata filename by a call to ExoreferencedGridCoverageReader.toImageFileName , which may be overridden.
Parameters:
  input - The File or URL to be read.
Parameters:
  seekForwardOnly - if true , grid coverages and metadata may onlybe read in ascending order from the input source.
throws:
  IOException - if an I/O operation failed.
throws:
  IllegalArgumentException - if input is not an instanceof a classe supported by this reader.



setLocale
public synchronized void setLocale(Locale locale)(Code)
Sets the current of this grid coverage reader to the given value. A value of null removes any previous setting, and indicates that the reader should localize as it sees fit.



toImageFileName
protected String toImageFileName(String filename)(Code)
Returns the filename for image data. This method is invoked by ExoreferencedGridCoverageReader.setInput after ExoreferencedGridCoverageReader.metadata has been loaded. Default implementation just replace the file extension by the extension argument specified to the constructor.
Parameters:
  filename - The filename part of metadata file. This is the filename partof the file supplied by users to ExoreferencedGridCoverageReader.setInput. The filename to use for for the image file. The directory is assumedto be the same than the metadata file.



Fields inherited from org.geotools.coverage.io.AbstractGridCoverageReader
static Logger LOGGER(Code)(Java Doc)
final protected GridToEnvelopeMapper gridToEnvelope(Code)(Java Doc)
protected ImageReader reader(Code)(Java Doc)

Methods inherited from org.geotools.coverage.io.AbstractGridCoverageReader
final int checkImageIndex(int imageIndex) throws IOException, IndexOutOfBoundsException(Code)(Java Doc)
abstract public CoordinateReferenceSystem getCoordinateReferenceSystem(int index) throws IOException(Code)(Java Doc)
abstract public Envelope getEnvelope(int index) throws IOException(Code)(Java Doc)
public synchronized GridCoverage getGridCoverage(int index) throws IOException(Code)(Java Doc)
public synchronized GridRange getGridRange(int index) throws IOException(Code)(Java Doc)
protected Iterator getImageReaders(Object input)(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public synchronized MathTransform getMathTransform(int index) throws IOException(Code)(Java Doc)
public synchronized String getName(int index) throws IOException(Code)(Java Doc)
public synchronized int getNumImages(boolean allowSearch) throws IOException(Code)(Java Doc)
public synchronized GridSampleDimension[] getSampleDimensions(int index) throws IOException(Code)(Java Doc)
final String getString(int key)(Code)(Java Doc)
public synchronized void reset() throws IOException(Code)(Java Doc)
public synchronized void setInput(Object input, boolean seekForwardOnly) throws IOException(Code)(Java Doc)
public synchronized void setLocale(Locale locale)(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.