📄 abstractgetmaprequest.html
字号:
name/value parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#initRequest()">initRequest</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#initVersion()">initVersion</A></B>()</CODE><BR> Sets up the version number for this request. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setBBox(org.geotools.data.ows.CRSEnvelope)">setBBox</A></B>(<A HREF="../../../../../org/geotools/data/ows/CRSEnvelope.html" title="class in org.geotools.data.ows">CRSEnvelope</A> box)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setBBox(java.lang.String)">setBBox</A></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)</CODE><BR> From the Web Map Service Implementation Specification: "The required BBOX parameter allows a Client to request a particular Bounding Box. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setBGColour(java.lang.String)">setBGColour</A></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)</CODE><BR> Specifies the colour, in hexidecimal format, to be used as the background of the map. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setDimensions(int, int)">setDimensions</A></B>(int width, int height)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setDimensions(java.lang.String, java.lang.String)">setDimensions</A></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)</CODE><BR> 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. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setElevation(java.lang.String)">setElevation</A></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)</CODE><BR> See the Web Map Server Implementation Specification 1.1.1, Annex C, in particular section C.4</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setExceptions(java.lang.String)">setExceptions</A></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)</CODE><BR> The exceptions type specifies what format the server should return exceptions in. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setFormat(java.lang.String)">setFormat</A></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)</CODE><BR> From the Web Map Service Implementation Specification: "The required FORMAT parameter states the desired format of the response to an operation. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setProperties(java.util.Properties)">setProperties</A></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)</CODE><BR> create a request using a properties file to save time</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setSampleDimensionValue(java.lang.String, java.lang.String)">setSampleDimensionValue</A></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)</CODE><BR> See the Web Map Server Implementation Specification 1.1.1, Annex C, in particular section C.4.2 Example use: <code>request.setSampleDimensionValue("DIM_WAVELENGTH", "4000");</code> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setSRS(java.lang.String)">setSRS</A></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> srs)</CODE><BR> From the Web Map Service Implementation Specification: "The required SRS parameter states which Spatial Reference System applies to the values in the BBOX parameter. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setTime(java.lang.String)">setTime</A></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)</CODE><BR> See the Web Map Server Implementation Specification 1.1.1, Annexes B and C</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setTransparent(boolean)">setTransparent</A></B>(boolean transparent)</CODE><BR> From the Web Map Service Implementation Specification: "The optional TRANSPARENT parameter specifies whether the map background is to be made transparent or not. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setVendorSpecificParameter(java.lang.String, java.lang.String)">setVendorSpecificParameter</A></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)</CODE><BR> Used to implement vendor specific parameters. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/wms/request/AbstractGetMapRequest.html#setVersion(java.lang.String)">setVersion</A></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> version)</CODE><BR> Sets the version number of the request.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_AbstractWMSRequest"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../../../org/geotools/data/wms/request/AbstractWMSRequest.html" title="class in org.geotools.data.wms.request">AbstractWMSRequest</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/geotools/data/wms/request/AbstractWMSRequest.html#initService()">initService</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_AbstractRequest"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../../../org/geotools/data/ows/AbstractRequest.html" title="class in org.geotools.data.ows">AbstractRequest</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/geotools/data/ows/AbstractRequest.html#getPostContentType()">getPostContentType</A>, <A HREF="../../../../../org/geotools/data/ows/AbstractRequest.html#getProperties()">getProperties</A>, <A HREF="../../../../../org/geotools/data/ows/AbstractRequest.html#performPostOutput(java.io.OutputStream)">performPostOutput</A>, <A HREF="../../../../../org/geotools/data/ows/AbstractRequest.html#processKey(java.lang.String)">processKey</A>, <A HREF="../../../../../org/geotools/data/ows/AbstractRequest.html#requiresPost()">requiresPost</A>, <A HREF="../../../../../org/geotools/data/ows/AbstractRequest.html#setProperty(java.lang.String, java.lang.String)">setProperty</A></CODE></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#equals(java.lang.Object)" title="class or interface in java.lang">equals</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#hashCode()" title="class or interface in java.lang">hashCode</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#toString()" title="class or interface in java.lang">toString</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> <A NAME="methods_inherited_from_class_Request"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface <A HREF="../../../../../org/geotools/data/ows/Request.html" title="interface in org.geotools.data.ows">Request</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/geotools/data/ows/Request.html#createResponse(java.lang.String, java.io.InputStream)">createResponse</A>, <A HREF="../../../../../org/geotools/data/ows/Request.html#getPostContentType()">getPostContentType</A>, <A HREF="../../../../../org/geotools/data/ows/Request.html#getProperties()">getProperties</A>, <A HREF="../../../../../org/geotools/data/ows/Request.html#performPostOutput(java.io.OutputStream)">performPostOutput</A>, <A HREF="../../../../../org/geotools/data/ows/Request.html#requiresPost()">requiresPost</A>, <A HREF="../../../../../org/geotools/data/ows/Request.html#setProperty(java.lang.String, java.lang.String)">setProperty</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="AbstractGetMapRequest(java.net.URL, java.util.Properties)"><!-- --></A><H3>AbstractGetMapRequest</H3><PRE>public <B>AbstractGetMapRequest</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URL.html" title="class or interface in java.net">URL</A> onlineResource, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A> properties)</PRE><DL><DD>Constructs a GetMapRequest. The data passed in represents valid values that can be used.<P><DT><B>Parameters:</B><DD><CODE>onlineResource</CODE> - the location that the request should be applied to<DD><CODE>properties</CODE> - pre-set properties to be used. Can be null.</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="getFinalURL()"><!-- --></A><H3>getFinalURL</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URL.html" title="class or interface in java.net">URL</A> <B>getFinalURL</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/data/ows/Request.html" title="interface in org.geotools.data.ows">Request</A></CODE></B></DD><DD>Once the properties of the request are configured, this will return the URL that points to the server and contains all of the appropriate name/value parameters.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/ows/Request.html#getFinalURL()">getFinalURL</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/ows/Request.html" title="interface in org.geotools.data.ows">Request</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/geotools/data/ows/AbstractRequest.html#getFinalURL()">getFinalURL</A></CODE> in class <CODE><A HREF="../../../../../org/geotools/data/ows/AbstractRequest.html" title="class in org.geotools.data.ows">AbstractRequest</A></CODE></DL></DD><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -