📄 abstractgridcoveragereader.html
字号:
throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Gets the <CODE>GridCoverage</CODE> name at the specified index. The default implementation returns the input path, or the "Untitled" string if input is not a <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html" title="class or interface in java.io"><CODE>File</CODE></A> or an <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URL.html" title="class or interface in java.net"><CODE>URL</CODE></A> object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the image to be queried.<DT><B>Returns:</B><DD>The name for the <CODE>GridCoverage</CODE> at the specified index.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the input source has not been set.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if the supplied index is out of bounds.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an error occurs reading the width information from the input source.</DL></DD></DL><HR><A NAME="getCoordinateReferenceSystem(int)"><!-- --></A><H3>getCoordinateReferenceSystem</H3><PRE>public abstract CoordinateReferenceSystem <B>getCoordinateReferenceSystem</B>(int index) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Returns the coordinate reference system for the <CODE>GridCoverage</CODE> to be read.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the image to be queried.<DT><B>Returns:</B><DD>The coordinate reference system for the <CODE>GridCoverage</CODE> at the specified index.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the input source has not been set.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if the supplied index is out of bounds.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an error occurs reading the width information from the input source.</DL></DD></DL><HR><A NAME="getEnvelope(int)"><!-- --></A><H3>getEnvelope</H3><PRE>public abstract Envelope <B>getEnvelope</B>(int index) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Returns the envelope for the <CODE>GridCoverage</CODE> to be read. The envelope must have the same number of dimensions than the coordinate reference system.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the image to be queried.<DT><B>Returns:</B><DD>The envelope for the <CODE>GridCoverage</CODE> at the specified index.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the input source has not been set.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if the supplied index is out of bounds.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an error occurs reading the width information from the input source.</DL></DD></DL><HR><A NAME="getGridRange(int)"><!-- --></A><H3>getGridRange</H3><PRE>public GridRange <B>getGridRange</B>(int index) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Returns the grid range for the <CODE>GridCoverage</CODE> to be read. The grid range must have the same number of dimensions than the envelope. The default implementation construct a <CODE>GridRange</CODE> object using information provided by <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/ImageReader.html#getWidth(int)" title="class or interface in javax.imageio"><CODE>ImageReader.getWidth(int)</CODE></A> and <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/ImageReader.html#getHeight(int)" title="class or interface in javax.imageio"><CODE>ImageReader.getHeight(int)</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the image to be queried.<DT><B>Returns:</B><DD>The grid range for the <CODE>GridCoverage</CODE> at the specified index.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the input source has not been set.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if the supplied index is out of bounds.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an error occurs reading the width information from the input source.</DL></DD></DL><HR><A NAME="getSampleDimensions(int)"><!-- --></A><H3>getSampleDimensions</H3><PRE>public SampleDimension[] <B>getSampleDimensions</B>(int index) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Returns the sample dimensions for each band of the <CODE>GridCoverage</CODE> to be read. If sample dimensions are not known, then this method returns . The default implementation always returns .<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the image to be queried.<DT><B>Returns:</B><DD>The category lists for the <CODE>GridCoverage</CODE> at the specified index. This array's length must be equals to the number of bands in <CODE>GridCoverage</CODE>.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the input source has not been set.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if the supplied index is out of bounds.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an error occurs reading the width information from the input source.</DL></DD></DL><HR><A NAME="getGridCoverage(int)"><!-- --></A><H3>getGridCoverage</H3><PRE>public GridCoverage <B>getGridCoverage</B>(int index) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Read the grid coverage. The default implementation gets the default <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/ImageReadParam.html" title="class or interface in javax.imageio"><CODE>ImageReadParam</CODE></A> and checks if it is an instance of <CODE>RawBinaryImageReadParam</CODE>. If it is, this method then invokes <CODE>RawBinaryImageReadParam#setStreamImageSize</CODE> with informations provided by <A HREF="../../../../org/geotools/coverage/io/AbstractGridCoverageReader.html#getGridRange(int)"><CODE>getGridRange(int)</CODE></A>. Finally, a grid coverage is constructed using informations provided by <A HREF="../../../../org/geotools/coverage/io/AbstractGridCoverageReader.html#getName(int)"><CODE>getName(int)</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/AbstractGridCoverageReader.html#getCoordinateReferenceSystem(int)"><CODE>getCoordinateReferenceSystem(int)</CODE></A> and <A HREF="../../../../org/geotools/coverage/io/AbstractGridCoverageReader.html#getEnvelope(int)"><CODE>getEnvelope(int)</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the image to be queried.<DT><B>Returns:</B><DD>The <CODE>GridCoverage</CODE> at the specified index.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the input source has not been set.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if the supplied index is out of bounds.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an error occurs reading the width information from the input source.</DL></DD></DL><HR><A NAME="getImageReaders(java.lang.Object)"><!-- --></A><H3>getImageReaders</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>getImageReaders</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> input)</PRE><DL><DD>Returns an <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util"><CODE>Iterator</CODE></A> containing all currently registered <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/ImageReader.html" title="class or interface in javax.imageio"><CODE>ImageReader</CODE></A>s that claim to be able to decode the image. The default implementation returns <code>ImageIO.getImageReadersByFormatName(<A HREF="../../../../org/geotools/coverage/io/AbstractGridCoverageReader.html#formatName"><CODE>formatName</CODE></A>)</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>input</CODE> - The input source.</DL></DD></DL><HR><A NAME="setLocale(java.util.Locale)"><!-- --></A><H3>setLocale</H3><PRE>public void <B>setLocale</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale)</PRE><DL><DD>Sets the current <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html" title="class or interface in java.util"><CODE>Locale</CODE></A> of this <code>AbstractGridCoverageReader</code> to the given value. A value of <code>null</code> removes any previous setting, and indicates that the reader should localize as it sees fit.<P><DD><DL></DL></DD></DL><HR><A NAME="getLocale()"><!-- --></A><H3>getLocale</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> <B>getLocale</B>()</PRE><DL><DD>Returns the currently set <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html" title="class or interface in java.util"><CODE>Locale</CODE></A>, or if none has been set.<P><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractGridCoverageReader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../org/geotools/coverage/io/ExoreferencedGridCoverageReader.html" title="class in org.geotools.coverage.io"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="AbstractGridCoverageReader.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -