⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gridcoverage2d.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 5 页
字号:
 process data differently (e.g. interpolating them).<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name for this coverage, or  for the same than .<DD><CODE>coverage</CODE> - The source grid coverage.</DL><HR><A NAME="GridCoverage2D(java.lang.CharSequence, javax.media.jai.PlanarImage, org.geotools.coverage.grid.GridGeometry2D, org.geotools.coverage.GridSampleDimension[], org.opengis.coverage.grid.GridCoverage[], java.util.Map)"><!-- --></A><H3>GridCoverage2D</H3><PRE>protected <B>GridCoverage2D</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;name,                         <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/PlanarImage.html" title="class or interface in javax.media.jai">PlanarImage</A>&nbsp;image,                         <A HREF="../../../../org/geotools/coverage/grid/GridGeometry2D.html" title="class in org.geotools.coverage.grid">GridGeometry2D</A>&nbsp;gridGeometry,                         <A HREF="../../../../org/geotools/coverage/GridSampleDimension.html" title="class in org.geotools.coverage">GridSampleDimension</A>[]&nbsp;bands,                         GridCoverage[]&nbsp;sources,                         <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;properties)                  throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD>Constructs a grid coverage with the specified <A HREF="../../../../org/geotools/coverage/grid/GridGeometry2D.html" title="class in org.geotools.coverage.grid">grid geometry</A> and <A HREF="../../../../org/geotools/coverage/GridSampleDimension.html" title="class in org.geotools.coverage">sample dimensions</A>. The envelope (including the coordinate reference system) is inferred from the grid geometry. <p> This constructor accepts an optional set of properties. "Properties" in <cite>Java Advanced Imaging</cite> is what OpenGIS calls "Metadata". Keys are <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang"><CODE>String</CODE></A> objects (<A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/util/CaselessStringKey.html" title="class or interface in javax.media.jai.util"><CODE>CaselessStringKey</CODE></A> are accepted as well), while values may be any <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang"><CODE>Object</CODE></A>.<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - The grid coverage name.<DD><CODE>image</CODE> - The image.<DD><CODE>gridGeometry</CODE> - The grid geometry (must contains an <A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#getEnvelope()">envelope</A> with its <A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#getCoordinateReferenceSystem()">coordinate reference system</A> and a "<A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#getGridToCoordinateSystem()">grid to CRS</A>" transform).<DD><CODE>bands</CODE> - Sample dimensions for each image band, or  for default sample                     dimensions. If non-null, then this array's length must matches the number                     of bands in .<DD><CODE>sources</CODE> - The sources for this grid coverage, or  if none.<DD><CODE>properties</CODE> - The set of properties for this coverage, or  none.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the number of bands differs from the number of sample         dimensions.<DT><B>Since:</B></DT>  <DD>2.2</DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="isDataEditable()"><!-- --></A><H3>isDataEditable</H3><PRE>public boolean <B>isDataEditable</B>()</PRE><DL><DD>Returns  if grid data can be edited. The default implementation returns  if <A HREF="../../../../org/geotools/coverage/grid/GridCoverage2D.html#image"><CODE>image</CODE></A> is an instance of <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/WritableRenderedImage.html" title="class or interface in java.awt.image"><CODE>WritableRenderedImage</CODE></A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>isDataEditable</CODE> in interface <CODE>GridCoverage</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/grid/AbstractGridCoverage.html#isDataEditable()">isDataEditable</A></CODE> in class <CODE><A HREF="../../../../org/geotools/coverage/grid/AbstractGridCoverage.html" title="class in org.geotools.coverage.grid">AbstractGridCoverage</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getGridGeometry()"><!-- --></A><H3>getGridGeometry</H3><PRE>public GridGeometry <B>getGridGeometry</B>()</PRE><DL><DD>Returns information for the grid coverage geometry. Grid geometry includes the valid range of grid coordinates and the georeferencing.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getGridGeometry</CODE> in interface <CODE>GridCoverage</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getEnvelope()"><!-- --></A><H3>getEnvelope</H3><PRE>public Envelope <B>getEnvelope</B>()</PRE><DL><DD>Returns the bounding box for the coverage domain in coordinate reference system coordinates. The returned envelope have at least two dimensions. It may have more dimensions if the coverage has some extent in other dimensions (for example a depth, or a start and end time).<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getEnvelope</CODE> in interface <CODE>Coverage</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/AbstractCoverage.html#getEnvelope()">getEnvelope</A></CODE> in class <CODE><A HREF="../../../../org/geotools/coverage/AbstractCoverage.html" title="class in org.geotools.coverage">AbstractCoverage</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The bounding box for the coverage domain in coordinate system         coordinates.</DL></DD></DL><HR><A NAME="getEnvelope2D()"><!-- --></A><H3>getEnvelope2D</H3><PRE>public <A HREF="../../../../org/geotools/geometry/Envelope2D.html" title="class in org.geotools.geometry">Envelope2D</A> <B>getEnvelope2D</B>()</PRE><DL><DD>Returns the two-dimensional bounding box for the coverage domain in coordinate reference system coordinates. If the coverage envelope has more than two dimensions, only the dimensions used in the underlying rendered image are returned.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getCoordinateReferenceSystem2D()"><!-- --></A><H3>getCoordinateReferenceSystem2D</H3><PRE>public CoordinateReferenceSystem <B>getCoordinateReferenceSystem2D</B>()</PRE><DL><DD>Returns the two-dimensional part of this grid coverage CRS. This is usually (but not always) identical to the <A HREF="../../../../org/geotools/coverage/AbstractCoverage.html#getCoordinateReferenceSystem()">full CRS</A>.<P><DD><DL></DL></DD><DD><DL><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/AbstractCoverage.html#getCoordinateReferenceSystem()"><CODE>AbstractCoverage.getCoordinateReferenceSystem()</CODE></A></DL></DD></DL><HR><A NAME="getNumSampleDimensions()"><!-- --></A><H3>getNumSampleDimensions</H3><PRE>public int <B>getNumSampleDimensions</B>()</PRE><DL><DD>Returns the number of bands in the grid coverage.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getNumSampleDimensions</CODE> in interface <CODE>Coverage</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getSampleDimension(int)"><!-- --></A><H3>getSampleDimension</H3><PRE>public SampleDimension <B>getSampleDimension</B>(int&nbsp;index)</PRE><DL><DD>Retrieve sample dimension information for the coverage. For a grid coverage, a sample dimension is a band. The sample dimension information include such things as description, data type of the value (bit, byte, integer...), the no data values, minimum and maximum values and a color table if one is associated with the dimension. A coverage must have at least one sample dimension.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getSampleDimension</CODE> in interface <CODE>Coverage</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getSampleDimensions()"><!-- --></A><H3>getSampleDimensions</H3><PRE>public <A HREF="../../../../org/geotools/coverage/GridSampleDimension.html" title="class in org.geotools.coverage">GridSampleDimension</A>[] <B>getSampleDimensions</B>()</PRE><DL><DD>Returns all sample dimensions for this grid coverage.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getInterpolation()"><!-- --></A><H3>getInterpolation</H3><PRE>public <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/Interpolation.html" title="class or interface in javax.media.jai">Interpolation</A> <B>getInterpolation</B>()</PRE><DL><DD>Returns the interpolation used for all  methods. The default implementation returns <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/InterpolationNearest.html" title="class or interface in javax.media.jai"><CODE>InterpolationNearest</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The interpolation.</DL></DD></DL><HR><A NAME="evaluate(org.opengis.spatialschema.geometry.DirectPosition)"><!-- --></A><H3>evaluate</H3><PRE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -