📄 abstractgetmaprequest.html
字号:
<DT><B>See Also:</B><DD><CODE>org.geotools.data.wms.request.Request#getFinalURL()</CODE></DL></DD></DL><HR><A NAME="initVersion()"><!-- --></A><H3>initVersion</H3><PRE>protected abstract void <B>initVersion</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../../org/geotools/data/ows/AbstractRequest.html" title="class in org.geotools.data.ows">AbstractRequest</A></CODE></B></DD><DD>Sets up the version number for this request. Typically something like setProperty("VERSION", "1.1.1");<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/ows/AbstractRequest.html#initVersion()">initVersion</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></DL></DD></DL><HR><A NAME="initRequest()"><!-- --></A><H3>initRequest</H3><PRE>protected void <B>initRequest</B>()</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/ows/AbstractRequest.html#initRequest()">initRequest</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></DL></DD></DL><HR><A NAME="setVersion(java.lang.String)"><!-- --></A><H3>setVersion</H3><PRE>public void <B>setVersion</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)</PRE><DL><DD>Sets the version number of the request.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html#setVersion(java.lang.String)">setVersion</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>version</CODE> - A String indicting a WMS Version ("1.0.0", "1.1.0", "1.1.1", or "1.3.0")</DL></DD></DL><HR><A NAME="addLayer(org.geotools.data.ows.Layer, java.lang.String)"><!-- --></A><H3>addLayer</H3><PRE>public void <B>addLayer</B>(<A HREF="../../../../../org/geotools/data/ows/Layer.html" title="class in org.geotools.data.ows">Layer</A> layer, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> style)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></B></DD><DD>Adds a Layer to the list of layers to be requested. This layer will be drawn below any previously added layers.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html#addLayer(org.geotools.data.ows.Layer, java.lang.String)">addLayer</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>layer</CODE> - the Layer to use<DD><CODE>style</CODE> - the style to use to draw the layer, can also be NULL, "" or "default"</DL></DD></DL><HR><A NAME="addLayer(org.geotools.data.ows.Layer)"><!-- --></A><H3>addLayer</H3><PRE>public void <B>addLayer</B>(<A HREF="../../../../../org/geotools/data/ows/Layer.html" title="class in org.geotools.data.ows">Layer</A> layer)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></B></DD><DD>Adds a Layer to the list of layers to be requested. This layer will be drawn below any previously added layers. The style will be the default one.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html#addLayer(org.geotools.data.ows.Layer)">addLayer</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>layer</CODE> - the Layer to use</DL></DD></DL><HR><A NAME="addLayer(java.lang.String, java.lang.String)"><!-- --></A><H3>addLayer</H3><PRE>public void <B>addLayer</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> layerName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> style)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></B></DD><DD>Adds a Layer to the list of layers to be requested. This layer will be drawn below any previously added layers.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html#addLayer(java.lang.String, java.lang.String)">addLayer</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>layerName</CODE> - the name of the layer to use<DD><CODE>style</CODE> - the style to use to draw the layer, can also be NULL, "" or "default"</DL></DD></DL><HR><A NAME="addLayer(org.geotools.data.ows.Layer, org.opengis.layer.Style)"><!-- --></A><H3>addLayer</H3><PRE>public void <B>addLayer</B>(<A HREF="../../../../../org/geotools/data/ows/Layer.html" title="class in org.geotools.data.ows">Layer</A> layer, Style style)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></B></DD><DD>Adds a Layer to the list of layers to be requested. This layer will be drawn below any previously added layers.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html#addLayer(org.geotools.data.ows.Layer, org.opengis.layer.Style)">addLayer</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>layer</CODE> - the Layer to use<DD><CODE>style</CODE> - the style to use. If it is null, the default style is used.</DL></DD></DL><HR><A NAME="addLayer(java.lang.String, org.opengis.layer.Style)"><!-- --></A><H3>addLayer</H3><PRE>public void <B>addLayer</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> layerName, Style style)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></B></DD><DD>Adds a Layer to the list of layers to be requested. This layer will be drawn below any previously added layers.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html#addLayer(java.lang.String, org.opengis.layer.Style)">addLayer</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>layerName</CODE> - the Layer to use<DD><CODE>style</CODE> - the style to use. If it is null, the default style is used.</DL></DD></DL><HR><A NAME="setSRS(java.lang.String)"><!-- --></A><H3>setSRS</H3><PRE>public void <B>setSRS</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)</PRE><DL><DD>From the Web Map Service Implementation Specification: "The required SRS parameter states which Spatial Reference System applies to the values in the BBOX parameter. The value of the SRS parameter shall be on of the values defined in the character data section of an <SRS> element defined or inherited by the requested layer. The same SRS applies to all layers in a single request. If the WMS has declared SRS=NONE for a Layer, then the Layer does not have a well-defined spatial reference system and should not be shown in conjunction with other layers. The client shall specify SRS as "none" in the GetMap request and the Server may issue a Service Exception otherwise."<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html#setSRS(java.lang.String)">setSRS</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>srs</CODE> - A String indicating the Spatial Reference System to render the layers in.</DL></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."<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html#setBBox(java.lang.String)">setBBox</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html#setBBox(org.geotools.data.ows.CRSEnvelope)">setBBox</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html#setFormat(java.lang.String)">setFormat</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html#setDimensions(java.lang.String, java.lang.String)">setDimensions</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/wms/request/GetMapRequest.html" title="interface in org.geotools.data.wms.request">GetMapRequest</A></CODE></DL></DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -