📄 operations.html
字号:
invert</H3><PRE>public Coverage <B>invert</B>(Coverage source) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Inverts the sample values of a coverage.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/Invert.html" title="class in org.geotools.coverage.processing.operation"><CODE>Invert</CODE></A></DL></DD></DL><HR><A NAME="absolute(org.opengis.coverage.Coverage)"><!-- --></A><H3>absolute</H3><PRE>public Coverage <B>absolute</B>(Coverage source) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Computes the mathematical absolute value of each sample value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/Absolute.html" title="class in org.geotools.coverage.processing.operation"><CODE>Absolute</CODE></A></DL></DD></DL><HR><A NAME="log(org.opengis.coverage.Coverage)"><!-- --></A><H3>log</H3><PRE>public Coverage <B>log</B>(Coverage source) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Takes the natural logarithm of the sample values of a coverage.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/Log.html" title="class in org.geotools.coverage.processing.operation"><CODE>Log</CODE></A></DL></DD></DL><HR><A NAME="exp(org.opengis.coverage.Coverage)"><!-- --></A><H3>exp</H3><PRE>public Coverage <B>exp</B>(Coverage source) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Takes the exponential of the sample values of a coverage.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/Exp.html" title="class in org.geotools.coverage.processing.operation"><CODE>Exp</CODE></A></DL></DD></DL><HR><A NAME="nodataFilter(org.opengis.coverage.grid.GridCoverage)"><!-- --></A><H3>nodataFilter</H3><PRE>public GridCoverage <B>nodataFilter</B>(GridCoverage source) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Replaces <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Float.html#NaN" title="class or interface in java.lang"><CODE>NaN</CODE></A> values by the weighted average of neighbors values. This method uses the default padding and validity threshold.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/NodataFilter.html" title="class in org.geotools.coverage.processing.operation"><CODE>NodataFilter</CODE></A></DL></DD></DL><HR><A NAME="nodataFilter(org.opengis.coverage.grid.GridCoverage, int, int)"><!-- --></A><H3>nodataFilter</H3><PRE>public GridCoverage <B>nodataFilter</B>(GridCoverage source, int padding, int validityThreshold) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Replaces <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Float.html#NaN" title="class or interface in java.lang"><CODE>NaN</CODE></A> values by the weighted average of neighbors values.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DD><CODE>padding</CODE> - The number of pixels above, below, to the left and to the right of central pixel to use for computing the average. The default value is 1.<DD><CODE>validityThreshold</CODE> - The minimal number of valid values required for computing the average. The value will be replaced by the average only if the number of valid value is greater than or equals to this threshold. The default value is 4.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/NodataFilter.html" title="class in org.geotools.coverage.processing.operation"><CODE>NodataFilter</CODE></A></DL></DD></DL><HR><A NAME="interpolate(org.opengis.coverage.grid.GridCoverage, java.lang.String)"><!-- --></A><H3>interpolate</H3><PRE>public GridCoverage <B>interpolate</B>(GridCoverage source, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> type) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Specifies the interpolation type to be used to interpolate values for points which fall between grid cells. The default value is nearest neighbor. The new interpolation type operates on all sample dimensions.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DD><CODE>type</CODE> - The interpolation type. Possible values are , and .<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/Interpolate.html" title="class in org.geotools.coverage.processing.operation"><CODE>Interpolate</CODE></A></DL></DD></DL><HR><A NAME="interpolate(org.opengis.coverage.grid.GridCoverage, javax.media.jai.Interpolation)"><!-- --></A><H3>interpolate</H3><PRE>public GridCoverage <B>interpolate</B>(GridCoverage source, <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> type) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Specifies the interpolation type to be used to interpolate values for points which fall between grid cells. The default value is nearest neighbor. The new interpolation type operates on all sample dimensions.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DD><CODE>type</CODE> - The interpolation type as a JAI interpolation object.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/Interpolate.html" title="class in org.geotools.coverage.processing.operation"><CODE>Interpolate</CODE></A></DL></DD></DL><HR><A NAME="interpolate(org.opengis.coverage.grid.GridCoverage, javax.media.jai.Interpolation[])"><!-- --></A><H3>interpolate</H3><PRE>public GridCoverage <B>interpolate</B>(GridCoverage source, <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>[] types) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Specifies the interpolation types to be used to interpolate values for points which fall between grid cells. The first element in the array is the primary interpolation. All other elements are fallback to be used if the primary interpolation returns a value. See <A HREF="../../../../org/geotools/coverage/processing/operation/Interpolate.html" title="class in org.geotools.coverage.processing.operation"><CODE>Interpolate</CODE></A> operation for details.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DD><CODE>types</CODE> - The interpolation types and their fallback.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/Interpolate.html" title="class in org.geotools.coverage.processing.operation"><CODE>Interpolate</CODE></A></DL></DD></DL><HR><A NAME="recolor(org.opengis.coverage.grid.GridCoverage, java.util.Map[])"><!-- --></A><H3>recolor</H3><PRE>public GridCoverage <B>recolor</B>(GridCoverage source, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>[] colorMaps) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Recolors a coverage to the specified colormaps.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DD><CODE>colorMaps</CODE> - The color maps to apply.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>Since:</B></DT> <DD>2.3</DD><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/Recolor.html" title="class in org.geotools.coverage.processing.operation"><CODE>Recolor</CODE></A></DL></DD></DL><HR><A NAME="selectSampleDimension(org.opengis.coverage.Coverage, int[])"><!-- --></A><H3>selectSampleDimension</H3><PRE>public Coverage <B>selectSampleDimension</B>(Coverage source, int[] sampleDimensions) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Chooses <var>N</var> <A HREF="../../../../org/geotools/coverage/GridSampleDimension.html" title="class in org.geotools.coverage">sample dimensions</A> from a coverage and copies their sample data to the destination grid coverage in the order specified.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DD><CODE>sampleDimensions</CODE> - The sample dimensions to select.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingExcepti
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -