📄 getmaprequest.html
字号:
</DD></DL><HR><A NAME="setBBox(java.lang.String)"><!-- --></A><H3>setBBox</H3><PRE>public void <B>setBBox</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> bbox)</PRE><DL><DD>From the Web Map Service Implementation Specification: "The required BBOX parameter allows a Client to request a particular Bounding Box. The value of the BBOX parameter in a GetMap request is a list of comma-separated numbers of the form "minx,miny,maxx,maxy". If the WMS server has declared that a Layer is not subsettable, then the Client shall specify exactly the declared Bounding Box values in the GetMap request and the Server may issue a Service Exception otherwise." NOTE: In WMS 1.3.0, the specification of "EPSG:4326" has the axis swapped, so a request made in 1.1.1 using "minx,miny,maxx,maxy" would use "miny,minx,maxy,maxx" in 1.3.0. Only when using EPSG:4326! Currently it is up to the client to do this on there own. TODO Accept Envelopes and doubles instead of Strings, and perform the 1.3.0 conversion automatically. Also note that not all servers may implement this. Should provide an option to use 1.1.1 format even when using 1.3.0.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bbox</CODE> - A string representing a bounding box in the format "minx,miny,maxx,maxy"</DL></DD></DL><HR><A NAME="setBBox(org.geotools.data.ows.CRSEnvelope)"><!-- --></A><H3>setBBox</H3><PRE>public void <B>setBBox</B>(<A HREF="../../../../../org/geotools/data/ows/CRSEnvelope.html" title="class in org.geotools.data.ows">CRSEnvelope</A> box)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setFormat(java.lang.String)"><!-- --></A><H3>setFormat</H3><PRE>public void <B>setFormat</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> format)</PRE><DL><DD>From the Web Map Service Implementation Specification: "The required FORMAT parameter states the desired format of the response to an operation. Supported values for a GetMap request on a WMS instance are listed in one or more <Format> elements in the &;ltRequest><GetMap> element of its Capabilities XML. The entire MIME type string in <Format> is used as the value of the FORMAT parameter."<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - The desired format for the GetMap response</DL></DD></DL><HR><A NAME="setDimensions(java.lang.String, java.lang.String)"><!-- --></A><H3>setDimensions</H3><PRE>public void <B>setDimensions</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> width, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> height)</PRE><DL><DD>From the Web Map Service Implementation Specification: "The required WIDTH and HEIGHT parameters specify the size in integer pixels of the map image to be produced. WIDTH specifies the number of pixels to be used between the minimum and maximum X values (inclusive) in the BBOX parameter, while HEIGHT specifies the number of pixels between the minimum and maximum Y values. If the WMS server has declared that a Layer has fixed width and height, then the Client shall specify exactly those WIDTH and HEIGHT values in the GetMap request and the Server may issue a Service Exception otherwise."<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - <DD><CODE>height</CODE> - </DL></DD></DL><HR><A NAME="setDimensions(int, int)"><!-- --></A><H3>setDimensions</H3><PRE>public void <B>setDimensions</B>(int width, int height)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setTransparent(boolean)"><!-- --></A><H3>setTransparent</H3><PRE>public void <B>setTransparent</B>(boolean transparent)</PRE><DL><DD>From the Web Map Service Implementation Specification: "The optional TRANSPARENT parameter specifies whether the map background is to be made transparent or not. The default value is false if the parameter is absent from the request."<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>transparent</CODE> - true for transparency, false otherwise</DL></DD></DL><HR><A NAME="setBGColour(java.lang.String)"><!-- --></A><H3>setBGColour</H3><PRE>public void <B>setBGColour</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> bgColour)</PRE><DL><DD>Specifies the colour, in hexidecimal format, to be used as the background of the map. It is a String representing RGB values in hexidecimal format, prefixed by "0x". The format is: 0xRRGGBB. The default value is 0xFFFFFF (white)<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bgColour</CODE> - the background colour of the map, in the format 0xRRGGBB</DL></DD></DL><HR><A NAME="setExceptions(java.lang.String)"><!-- --></A><H3>setExceptions</H3><PRE>public void <B>setExceptions</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> exceptions)</PRE><DL><DD>The exceptions type specifies what format the server should return exceptions in. <p> Valid values are: <ul> <li> "application/vnd.ogc.se_xml" (the default) </li> <li> "application/vnd.ogc.se_inimage" </li> <li> "application/vnd.ogc.se_blank" </li> </ul> </p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>exceptions</CODE> - </DL></DD></DL><HR><A NAME="setTime(java.lang.String)"><!-- --></A><H3>setTime</H3><PRE>public void <B>setTime</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> time)</PRE><DL><DD>See the Web Map Server Implementation Specification 1.1.1, Annexes B and C<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - See the Web Map Server Implementation Specification 1.1.1, Annexes B and C</DL></DD></DL><HR><A NAME="setElevation(java.lang.String)"><!-- --></A><H3>setElevation</H3><PRE>public void <B>setElevation</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> elevation)</PRE><DL><DD>See the Web Map Server Implementation Specification 1.1.1, Annex C, in particular section C.4<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elevation</CODE> - See the Web Map Server Implementation Specification 1.1.1, Annex C</DL></DD></DL><HR><A NAME="setSampleDimensionValue(java.lang.String, java.lang.String)"><!-- --></A><H3>setSampleDimensionValue</H3><PRE>public void <B>setSampleDimensionValue</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE><DL><DD>See the Web Map Server Implementation Specification 1.1.1, Annex C, in particular section C.4.2 <p> Example use: <code>request.setSampleDimensionValue("DIM_WAVELENGTH", "4000");</code> </p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the request parameter name to set (usually with 'dim_' as prefix)<DD><CODE>value</CODE> - the value of the request parameter (value, interval or comma-separated list)</DL></DD></DL><HR><A NAME="setVendorSpecificParameter(java.lang.String, java.lang.String)"><!-- --></A><H3>setVendorSpecificParameter</H3><PRE>public void <B>setVendorSpecificParameter</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE><DL><DD>Used to implement vendor specific parameters. Entirely optional.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a request parameter name<DD><CODE>value</CODE> - a value to accompany the name</DL></DD></DL><HR><A NAME="setProperties(java.util.Properties)"><!-- --></A><H3>setProperties</H3><PRE>public void <B>setProperties</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A> p)</PRE><DL><DD>create a request using a properties file to save time<P><DD><DL></DL></DD><DD><DL></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/GetMapRequest.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/data/wms/request/GetLegendGraphicRequest.html" title="interface in org.geotools.data.wms.request"><B>PREV CLASS</B></A> <A HREF="../../../../../org/geotools/data/wms/request/GetStylesRequest.html" title="interface in org.geotools.data.wms.request"><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="GetMapRequest.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> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | 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 + -