📄 rastersymbolizer.html
字号:
<A NAME="setColorMap(org.geotools.styling.ColorMap)"><!-- --></A><H3>setColorMap</H3><PRE>public void <B>setColorMap</B>(<A HREF="../../../org/geotools/styling/ColorMap.html" title="interface in org.geotools.styling">ColorMap</A> colorMap)</PRE><DL><DD>The ColorMap element defines either the colors of a palette-type raster source or the mapping of fixed-numeric pixel values to colors. For example, a DEM raster giving elevations in meters above sea level can be translated to a colored image with a ColorMap. The quantity attributes of a color-map are used for translating between numeric matrixes and color rasters and the ColorMap entries should be in order of increasing numeric quantity so that intermediate numeric values can be matched to a color (or be interpolated between two colors). Labels may be used for legends or may be used in the future to match character values. Not all systems can support opacity in colormaps. The default opacity is 1.0 (fully opaque). Defaults for quantity and label are system-dependent.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>colorMap</CODE> - the ColorMap for the raster</DL></DD></DL><HR><A NAME="getColorMap()"><!-- --></A><H3>getColorMap</H3><PRE>public <A HREF="../../../org/geotools/styling/ColorMap.html" title="interface in org.geotools.styling">ColorMap</A> <B>getColorMap</B>()</PRE><DL><DD>The ColorMap element defines either the colors of a palette-type raster source or the mapping of fixed-numeric pixel values to colors. For example, a DEM raster giving elevations in meters above sea level can be translated to a colored image with a ColorMap. The quantity attributes of a color-map are used for translating between numeric matrixes and color rasters and the ColorMap entries should be in order of increasing numeric quantity so that intermediate numeric values can be matched to a color (or be interpolated between two colors). Labels may be used for legends or may be used in the future to match character values. Not all systems can support opacity in colormaps. The default opacity is 1.0 (fully opaque). Defaults for quantity and label are system-dependent.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the ColorMap for the raster</DL></DD></DL><HR><A NAME="setContrastEnhancement(org.geotools.styling.ContrastEnhancement)"><!-- --></A><H3>setContrastEnhancement</H3><PRE>public void <B>setContrastEnhancement</B>(<A HREF="../../../org/geotools/styling/ContrastEnhancement.html" title="interface in org.geotools.styling">ContrastEnhancement</A> ce)</PRE><DL><DD>The ContrastEnhancement element defines contrast enhancement for a channel of a false-color image or for a color image. In the case of a color image, the relative grayscale brightness of a pixel color is used. ?Normalize? means to stretch the contrast so that the dimmest color is stretched to black and the brightest color is stretched to white, with all colors in between stretched out linearly. ?Histogram? means to stretch the contrast based on a histogram of how many colors are at each brightness level on input, with the goal of producing equal number of pixels in the image at each brightness level on output. This has the effect of revealing many subtle ground features. A ?GammaValue? tells how much to brighten (value greater than 1.0) or dim (value less than 1.0) an image. The default GammaValue is 1.0 (no change). If none of Normalize, Histogram, or GammaValue are selected in a ContrastEnhancement, then no enhancement is performed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ce</CODE> - the contrastEnhancement</DL></DD></DL><HR><A NAME="getContrastEnhancement()"><!-- --></A><H3>getContrastEnhancement</H3><PRE>public <A HREF="../../../org/geotools/styling/ContrastEnhancement.html" title="interface in org.geotools.styling">ContrastEnhancement</A> <B>getContrastEnhancement</B>()</PRE><DL><DD>The ContrastEnhancement element defines contrast enhancement for a channel of a false-color image or for a color image. In the case of a color image, the relative grayscale brightness of a pixel color is used. ?Normalize? means to stretch the contrast so that the dimmest color is stretched to black and the brightest color is stretched to white, with all colors in between stretched out linearly. ?Histogram? means to stretch the contrast based on a histogram of how many colors are at each brightness level on input, with the goal of producing equal number of pixels in the image at each brightness level on output. This has the effect of revealing many subtle ground features. A ?GammaValue? tells how much to brighten (value greater than 1.0) or dim (value less than 1.0) an image. The default GammaValue is 1.0 (no change). If none of Normalize, Histogram, or GammaValue are selected in a ContrastEnhancement, then no enhancement is performed.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the ContrastEnhancement</DL></DD></DL><HR><A NAME="setShadedRelief(org.geotools.styling.ShadedRelief)"><!-- --></A><H3>setShadedRelief</H3><PRE>public void <B>setShadedRelief</B>(<A HREF="../../../org/geotools/styling/ShadedRelief.html" title="interface in org.geotools.styling">ShadedRelief</A> relief)</PRE><DL><DD>The ShadedRelief element selects the application of relief shading (or ?hill shading?) to an image for a three-dimensional visual effect. It is defined as: Exact parameters of the shading are system-dependent (for now). If the BrightnessOnly flag is ?0? (false, default), the shading is applied to the layer being rendered as the current RasterSymbol. If BrightnessOnly is ?1? (true), the shading is applied to the brightness of the colors in the rendering canvas generated so far by other layers, with the effect of relief-shading these other layers. The default for BrightnessOnly is ?0? (false). The ReliefFactor gives the amount of exaggeration to use for the height of the ?hills.? A value of around 55 (times) gives reasonable results for Earth-based DEMs. The default value is system-dependent.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>relief</CODE> - the shadedrelief object</DL></DD></DL><HR><A NAME="getShadedRelief()"><!-- --></A><H3>getShadedRelief</H3><PRE>public <A HREF="../../../org/geotools/styling/ShadedRelief.html" title="interface in org.geotools.styling">ShadedRelief</A> <B>getShadedRelief</B>()</PRE><DL><DD>The ShadedRelief element selects the application of relief shading (or ?hill shading?) to an image for a three-dimensional visual effect. It is defined as: Exact parameters of the shading are system-dependent (for now). If the BrightnessOnly flag is ?0? (false, default), the shading is applied to the layer being rendered as the current RasterSymbol. If BrightnessOnly is ?1? (true), the shading is applied to the brightness of the colors in the rendering canvas generated so far by other layers, with the effect of relief-shading these other layers. The default for BrightnessOnly is ?0? (false). The ReliefFactor gives the amount of exaggeration to use for the height of the ?hills.? A value of around 55 (times) gives reasonable results for Earth-based DEMs. The default value is system-dependent.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the shadedrelief object</DL></DD></DL><HR><A NAME="setImageOutline(org.geotools.styling.Symbolizer)"><!-- --></A><H3>setImageOutline</H3><PRE>public void <B>setImageOutline</B>(<A HREF="../../../org/geotools/styling/Symbolizer.html" title="interface in org.geotools.styling">Symbolizer</A> symbolizer)</PRE><DL><DD>The ImageOutline element specifies that individual source rasters in a multi-raster set (such as a set of satellite-image scenes) should be outlined with either a LineStringSymbol or PolygonSymbol. It is defined as: <pre> <xs:element name="ImageOutline"> <xs:complexType> <xs:choice> <xs:element ref="sld:LineSymbolizer"/> <xs:element ref="sld:PolygonSymbolizer"/> </xs:choice> </xs:complexType> </xs:element> </pre> An Opacity of 0.0 can be selected for the main raster to avoid rendering the main-raster pixels, or an opacity can be used for a PolygonSymbolizer Fill to allow the main-raster data be visible through the fill.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>symbolizer</CODE> - the symbolizer to be used. If this is <B>not</B> a polygon or a line symbolizer an unexpected argument exception may be thrown by an implementing class.</DL></DD></DL><HR><A NAME="getImageOutline()"><!-- --></A><H3>getImageOutline</H3><PRE>public <A HREF="../../../org/geotools/styling/Symbolizer.html" title="interface in org.geotools.styling">Symbolizer</A> <B>getImageOutline</B>()</PRE><DL><DD>The ImageOutline element specifies that individual source rasters in a multi-raster set (such as a set of satellite-image scenes) should be outlined with either a LineStringSymbol or PolygonSymbol. It is defined as: <pre> <xs:element name="ImageOutline"> <xs:complexType> <xs:choice> <xs:element ref="sld:LineSymbolizer"/> <xs:element ref="sld:PolygonSymbolizer"/> </xs:choice> </xs:complexType> </xs:element> </pre> An Opacity of 0.0 can be selected for the main raster to avoid rendering the main-raster pixels, or an opacity can be used for a PolygonSymbolizer Fill to allow the main-raster data be visible through the fill.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The relevent symbolizer</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/RasterSymbolizer.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"> <A HREF="../../../org/geotools/styling/PolygonSymbolizer.html" title="interface in org.geotools.styling"><B>PREV CLASS</B></A> <A HREF="../../../org/geotools/styling/RemoteOWS.html" title="interface in org.geotools.styling"><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="RasterSymbolizer.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 | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -