📄 abstractgridcoverage2dreader.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_13) on Tue Jun 05 11:36:32 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>AbstractGridCoverage2DReader (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.data.coverage.grid.AbstractGridCoverage2DReader class"><META NAME="keywords" CONTENT="coverageFactory"><META NAME="keywords" CONTENT="EPS"><META NAME="keywords" CONTENT="operationFactory"><META NAME="keywords" CONTENT="demColors"><META NAME="keywords" CONTENT="numOverviews"><META NAME="keywords" CONTENT="raster2Model"><META NAME="keywords" CONTENT="crs"><META NAME="keywords" CONTENT="originalEnvelope"><META NAME="keywords" CONTENT="coverageName"><META NAME="keywords" CONTENT="source"><META NAME="keywords" CONTENT="hints"><META NAME="keywords" CONTENT="highestRes"><META NAME="keywords" CONTENT="closeMe"><META NAME="keywords" CONTENT="gzipped"><META NAME="keywords" CONTENT="originalGridRange"><META NAME="keywords" CONTENT="inStream"><META NAME="keywords" CONTENT="overViewResolutions"><META NAME="keywords" CONTENT="setReadParams()"><META NAME="keywords" CONTENT="isScaleTranslate()"><META NAME="keywords" CONTENT="decimationOnReadingControl()"><META NAME="keywords" CONTENT="createImageCoverage()"><META NAME="keywords" CONTENT="getResolution()"><META NAME="keywords" CONTENT="getCrs()"><META NAME="keywords" CONTENT="getOriginalGridRange()"><META NAME="keywords" CONTENT="getOriginalEnvelope()"><META NAME="keywords" CONTENT="getSource()"><META NAME="keywords" CONTENT="dispose()"><META NAME="keywords" CONTENT="skip()"><META NAME="keywords" CONTENT="hasMoreGridCoverages()"><META NAME="keywords" CONTENT="listSubNames()"><META NAME="keywords" CONTENT="getCurrentSubname()"><META NAME="keywords" CONTENT="getMetadataNames()"><META NAME="keywords" CONTENT="getMetadataValue()"><META NAME="keywords" CONTENT="getGridCoverageCount()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="AbstractGridCoverage2DReader (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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/AbstractGridCoverage2DReader.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/data/coverage/grid/AbstractGridCoverageWriter.html" title="class in org.geotools.data.coverage.grid"><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="AbstractGridCoverage2DReader.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_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.data.coverage.grid</FONT><BR>Class AbstractGridCoverage2DReader</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>AbstractGridCoverage2DReader</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>GridCoverageReader</DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/geotools/gce/arcgrid/ArcGridReader.html" title="class in org.geotools.gce.arcgrid">ArcGridReader</A>, <A HREF="../../../../../org/geotools/arcsde/gce/ArcSDERasterGridCoverage2DReader.html" title="class in org.geotools.arcsde.gce">ArcSDERasterGridCoverage2DReader</A>, <A HREF="../../../../../org/geotools/gce/geotiff/GeoTiffReader.html" title="class in org.geotools.gce.geotiff">GeoTiffReader</A>, <A HREF="../../../../../org/geotools/gce/gtopo30/GTopo30Reader.html" title="class in org.geotools.gce.gtopo30">GTopo30Reader</A>, <A HREF="../../../../../org/geotools/gce/imagemosaic/ImageMosaicReader.html" title="class in org.geotools.gce.imagemosaic">ImageMosaicReader</A>, <A HREF="../../../../../org/geotools/gce/imagepyramid/ImagePyramidReader.html" title="class in org.geotools.gce.imagepyramid">ImagePyramidReader</A>, <A HREF="../../../../../org/geotools/gce/image/WorldImageReader.html" title="class in org.geotools.gce.image">WorldImageReader</A></DD></DL><HR><DL><DT>public abstract class <B>AbstractGridCoverage2DReader</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements GridCoverageReader</DL><P>This class is a first attempt for providing a way to get more informations out of a single 2D raster datasets (x,y). It is worth to remark that for the moment this is thought for 2D rasters not for 3D or 4D rasters (x,y,z,t). <p> The main drawback I see with the current GeoApi GridCoverageReader interface is that there is no way to get real information about a raster source unless you instantiate a GridCoverage. As an instance it is impossible to know the envelope, the number of overviews, the tile size. This information is needed in order to perform decimation on reading or to use built-in overviews<br> This really impacts the ability to exploit raster datasets in a desktop environment where caching is crucial.<P><P><DL><DT><B>Since:</B></DT> <DD>2.3</DD><DT><B>Author:</B></DT> <DD>Simone Giannecchini</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#closeMe">closeMe</A></B></CODE><BR> Temp variable used in many readers.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static <A HREF="../../../../../org/geotools/coverage/grid/GridCoverageFactory.html" title="class in org.geotools.coverage.grid">GridCoverageFactory</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#coverageFactory">coverageFactory</A></B></CODE><BR> Caches a default GridCoverageFactory for usage in plugins.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#coverageName">coverageName</A></B></CODE><BR> Coverage name</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected CoordinateReferenceSystem</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#crs">crs</A></B></CODE><BR> crs for this coverage</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#demColors">demColors</A></B></CODE><BR> Default color ramp. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#EPS">EPS</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#gzipped">gzipped</A></B></CODE><BR> In case we are trying to read from a GZipped file this will be set to true.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#highestRes">highestRes</A></B></CODE><BR> Highest resolution availaible for this reader.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#hints">hints</A></B></CODE><BR> Hints used by the <A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html" title="class in org.geotools.data.coverage.grid"><CODE>AbstractGridCoverage2DReader</CODE></A> subclasses.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/stream/ImageInputStream.html" title="class or interface in javax.imageio.stream">ImageInputStream</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#inStream">inStream</A></B></CODE><BR> Input stream that can be used to initialize subclasses of <A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html" title="class in org.geotools.data.coverage.grid"><CODE>AbstractGridCoverage2DReader</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#numOverviews">numOverviews</A></B></CODE><BR> This contains the maximum number of grid coverages in the file/stream. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static CoordinateOperationFactory</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#operationFactory">operationFactory</A></B></CODE><BR> Buffered factory for coordinate operations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../../org/geotools/geometry/GeneralEnvelope.html" title="class in org.geotools.geometry">GeneralEnvelope</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#originalEnvelope">originalEnvelope</A></B></CODE><BR> Envelope read from file</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../../org/geotools/coverage/grid/GeneralGridRange.html" title="class in org.geotools.coverage.grid">GeneralGridRange</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#originalGridRange">originalGridRange</A></B></CODE><BR> The original <CODE>GridRange</CODE> for the <A HREF="../../../../../org/geotools/coverage/grid/GridCoverage2D.html" title="class in org.geotools.coverage.grid"><CODE>GridCoverage2D</CODE></A> of this reader.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected double[][]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html#overViewResolutions">overViewResolutions</A></B></CODE><BR> Resolutions avialaible through an overviews based mechanism.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -