📄 gridsampledimension.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/coverage/GridSampleDimension.html#getOffset()">getOffset</A></B>()</CODE><BR> Returns the value to add to grid values for this sample dimension. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int[][]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/coverage/GridSampleDimension.html#getPalette()">getPalette</A></B>()</CODE><BR> Color palette associated with the sample dimension. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> PaletteInterpretation</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/coverage/GridSampleDimension.html#getPaletteInterpretation()">getPaletteInterpretation</A></B>()</CODE><BR> Indicates the type of color palette entry for sample dimensions which have a palette. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/util/NumberRange.html" title="class in org.geotools.util">NumberRange</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/coverage/GridSampleDimension.html#getRange()">getRange</A></B>()</CODE><BR> Returns the range of values in this sample dimension. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> SampleDimensionType</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/coverage/GridSampleDimension.html#getSampleDimensionType()">getSampleDimensionType</A></B>()</CODE><BR> Returns a code value indicating grid value data type. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> MathTransform1D</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/coverage/GridSampleDimension.html#getSampleToGeophysics()">getSampleToGeophysics</A></B>()</CODE><BR> Returns a transform from sample values to geophysics values. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/coverage/GridSampleDimension.html#getScale()">getScale</A></B>()</CODE><BR> Returns the value which is multiplied to grid values for this sample dimension. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://jsr-108.sourceforge.net/javadoc/javax/units/Unit.html" title="class or interface in javax.units">Unit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/coverage/GridSampleDimension.html#getUnits()">getUnits</A></B>()</CODE><BR> Returns the unit information for this sample dimension. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/coverage/GridSampleDimension.html#hashCode()">hashCode</A></B>()</CODE><BR> Returns a hash value for this sample dimension. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/coverage/GridSampleDimension.html" title="class in org.geotools.coverage">GridSampleDimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/coverage/GridSampleDimension.html#rescale(double, double)">rescale</A></B>(double scale, double offset)</CODE><BR> Returns a sample dimension using new <A HREF="../../../org/geotools/coverage/GridSampleDimension.html#getScale()"><CODE>scale</CODE></A> and <A HREF="../../../org/geotools/coverage/GridSampleDimension.html#getOffset()"><CODE>offset</CODE></A> coefficients. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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/coverage/GridSampleDimension.html#toString()">toString</A></B>()</CODE><BR> Returns a string representation of this sample dimension. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../org/geotools/coverage/GridSampleDimension.html" title="class in org.geotools.coverage">GridSampleDimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/coverage/GridSampleDimension.html#wrap(org.opengis.coverage.SampleDimension)">wrap</A></B>(SampleDimension sd)</CODE><BR> Wrap the specified OpenGIS's sample dimension into a Geotools's implementation of .</TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="GridSampleDimension()"><!-- --></A><H3>GridSampleDimension</H3><PRE>public <B>GridSampleDimension</B>()</PRE><DL><DD><B>Deprecated.</B> <I>Use <A HREF="../../../org/geotools/coverage/GridSampleDimension.html#GridSampleDimension(java.lang.CharSequence)"><CODE>GridSampleDimension(CharSequence)</CODE></A> instead.</I><P><DD>Constructs a sample dimension with no description and no category.<P></DL><HR><A NAME="GridSampleDimension(java.lang.CharSequence)"><!-- --></A><H3>GridSampleDimension</H3><PRE>public <B>GridSampleDimension</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> description)</PRE><DL><DD>Constructs a sample dimension with specified name and no category.<P><DT><B>Parameters:</B><DD><CODE>description</CODE> - The sample dimension title or description, or if none. This is the value to be returned by <A HREF="../../../org/geotools/coverage/GridSampleDimension.html#getDescription()"><CODE>getDescription()</CODE></A>.<DT><B>Since:</B></DT> <DD>2.3</DD></DL><HR><A NAME="GridSampleDimension(java.lang.CharSequence, java.lang.CharSequence[])"><!-- --></A><H3>GridSampleDimension</H3><PRE>public <B>GridSampleDimension</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> description, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>[] categoriesNames)</PRE><DL><DD>Constructs a sample dimension with a set of qualitative categories only. This constructor expects only a sequence of category names for the values contained in a sample dimension. This allows for names to be assigned to numerical values. The first entry in the sequence relates to a cell value of zero. For example: [0]="Background", [1]="Water", [2]="Forest", [3]="Urban". The created sample dimension will have no unit and a default set of colors.<P><DT><B>Parameters:</B><DD><CODE>description</CODE> - The sample dimension title or description, or for the default (the name of what looks like the "main" category). This is the value to be returned by <A HREF="../../../org/geotools/coverage/GridSampleDimension.html#getDescription()"><CODE>getDescription()</CODE></A>.<DD><CODE>categoriesNames</CODE> - Sequence of category names for the values contained in a sample dimension, as <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> or <CODE>InternationalString</CODE> objects.<DT><B>Since:</B></DT> <DD>2.3</DD></DL><HR><A NAME="GridSampleDimension(java.lang.CharSequence[])"><!-- --></A><H3>GridSampleDimension</H3><PRE>public <B>GridSampleDimension</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>[] categoriesNames)</PRE><DL><DD><B>Deprecated.</B> <I>Replaced by <A HREF="../../../org/geotools/coverage/GridSampleDimension.html#GridSampleDimension(java.lang.CharSequence, java.lang.CharSequence[])"><CODE>GridSampleDimension(CharSequence, CharSequence[])</CODE></A>.</I><P><DD>Constructs a sample dimension with a set of qualitative categories only. This constructor expects only a sequence of category names for the values contained in a sample dimension. This allows for names to be assigned to numerical values. The first entry in the sequence relates to a cell value of zero. For example: [0]="Background", [1]="Water", [2]="Forest", [3]="Urban". The created sample dimension will have no unit and a default set of colors.<P><DT><B>Parameters:</B><DD><CODE>categoriesNames</CODE> - Sequence of category names for the values contained in a sample dimension, as <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> or <CODE>InternationalString</CODE> objects.</DL><HR><A NAME="GridSampleDimension(java.lang.CharSequence, java.lang.CharSequence[], java.awt.Color[])"><!-- --></A><H3>GridSampleDimension</H3><PRE>public <B>GridSampleDimension</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> description, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>[] names, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A>[] colors)</PRE><DL><DD>Constructs a sample dimension with a set of qualitative categories and colors. This constructor expects a sequence of category names for the values contained in a sample dimension. This allows for names to be assigned to numerical values. The first entry in the sequence relates to a cell value of zero. For example: [0]="Background", [1]="Water", [2]="Forest", [3]="Urban". The created sample dimension will have no unit and a default set of colors.<P><DT><B>Parameters:</B><DD><CODE>description</CODE> - The sample dimension title or description, or for the default
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -