Package com.luciad.wms.client.model
Class TLcdWMSGetLegendGraphicRequest
java.lang.Object
com.luciad.wms.client.model.TLcdWMSGetLegendGraphicRequest
- All Implemented Interfaces:
ILcdOWSRequest
A class which represents a WMS
GetLegendGraphic request.
Instances of this class can be created using the
TLcdWMSClient.createGetLegendGraphicRequest() method.
This method will ensure a request object is created that is compatible with the WMS version
implemented by the WMS server.- Since:
- 9.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns a key-value pair (KVP) encoding of this request.getRestEncoding(URI aBaseURI) Returnsnull, REST encoding is not supported.Returns an object representing data to be used by the transportation layer (seeILcdOWSTransport) to perform this OGC Web Service request.Returns the XML encoding of this request.voidsetCoverage(String aCoverage) Sets the coverage for which a legend graphic should be created.voidsetExceptions(String aExceptionType) Sets the optional 'exceptions' parameter of the request.voidsetFeatureType(QName aFeatureType) Sets theQNameof a feature type for which a legend graphic should be created.voidSets the format which should be used for the requested map.voidsetHeight(int aHeight) An optional argument which specifies the size in pixels of the graphic which will be produced.voidSets the mandatory 'layer' request parameter.voidsetRemoteOWSType(String aOWSType) Sets the optional 'remote_ows_type' parameter, should be 'WCS' or 'WFS'.voidsetRemoteOWSURL(String aOWSURL) Sets the optional 'remote_ows_url' parameter.voidSets the optional rule of style parameter of the request.voidsetScale(double aScale) Sets the optional scale parameter of the request.voidSets the optional 'style' request parameter.voidSets a Styled Layer Descriptor which will be used for the 'sld_body' parameter.voidSets an URL pointing to a valid Styled Layer Descriptor which will be used by the server.voidsetTransportData(Object aTransportData) Sets an object representing data to be used by the transportation layer (seeILcdOWSTransport) to perform this OGC Web Service request.voidsetWidth(int aWidth) An optional argument which specifies the size in pixels of the graphic which will be produced.
-
Method Details
-
setLayer
Sets the mandatory 'layer' request parameter.- Parameters:
aLayerName- A name corresponding to a layer.
-
setStyle
Sets the optional 'style' request parameter. The style must correspond to a valid style available for the layer.- Parameters:
aStyleName- The name of a style.- See Also:
-
setRemoteOWSType
Sets the optional 'remote_ows_type' parameter, should be 'WCS' or 'WFS'.- Parameters:
aOWSType- A valid OWS type.
-
setRemoteOWSURL
Sets the optional 'remote_ows_url' parameter.- Parameters:
aOWSURL- The URL of an OWS.
-
setFeatureType
Sets theQNameof a feature type for which a legend graphic should be created. This parameter only needs to be set if the layer is a WFS layer and contains more then one feature type.- Parameters:
aFeatureType- A QName corresponding to a feature type which is displayed in the layer.
-
setCoverage
Sets the coverage for which a legend graphic should be created. This parameter only needs to be set if the layer is a WCS layer and contains more then one coverage.- Parameters:
aCoverage- String corresponding to a coverage which is displayed in the layer.
-
setRule
Sets the optional rule of style parameter of the request.- Parameters:
aRule- String corresponding to a rule of style.
-
setScale
public void setScale(double aScale) Sets the optional scale parameter of the request.- Parameters:
aScale- Double which is a standardized scale denominator.
-
setStyledLayerDescriptor
Sets a Styled Layer Descriptor which will be used for the 'sld_body' parameter. Setting this parameter to a non-null value will clear any previously set sld URL or sld.- Parameters:
aSLD- A valid SLD, can be null.- See Also:
-
setStyledLayerDescriptorURL
Sets an URL pointing to a valid Styled Layer Descriptor which will be used by the server. Setting this parameter to a non-null value will clear any previously set sld URL or sld.- Parameters:
aURL- A URL which points to a valid SLD, can be null to clear the currently set URL.- See Also:
-
setWidth
public void setWidth(int aWidth) An optional argument which specifies the size in pixels of the graphic which will be produced.- Parameters:
aWidth- A positive integer specifying a size in pixels.
-
setHeight
public void setHeight(int aHeight) An optional argument which specifies the size in pixels of the graphic which will be produced.- Parameters:
aHeight- A positive integer specifying a size in pixels.
-
setFormat
Sets the format which should be used for the requested map. The server will return a ServiceException in case the format is not supported.- Parameters:
aFormat- A valid mime type which specifies the desired format.
-
setExceptions
Sets the optional 'exceptions' parameter of the request. The default value is 'application/vnd.ogc.se_xml', other possible values are available in the capabilities of the WMS.- Parameters:
aExceptionType- String corresponding to a valid type of exception.
-
getKVPEncoding
Description copied from interface:ILcdOWSRequestReturns a key-value pair (KVP) encoding of this request. If no key-value pairs are defined, an empty map should be returned. If no key-value pair encoding is supported for this request,nullshould be returned.- Specified by:
getKVPEncodingin interfaceILcdOWSRequest- Returns:
- the key-value pair (KVP) representation of this request.
-
getXMLEncoding
Description copied from interface:ILcdOWSRequestReturns the XML encoding of this request. If no XML encoding is supported for this request,nullshould be returned.- Specified by:
getXMLEncodingin interfaceILcdOWSRequest- Returns:
- the XML representation of this request.
-
setTransportData
Sets an object representing data to be used by the transportation layer (seeILcdOWSTransport) to perform this OGC Web Service request. The type of object and the data contained in it depends on theILcdOWSTransportobject used to perform this request.- Parameters:
aTransportData- an object representing data to be used by the transportation layer to perform this OGC Web Service request.- See Also:
-
getTransportData
Description copied from interface:ILcdOWSRequestReturns an object representing data to be used by the transportation layer (seeILcdOWSTransport) to perform this OGC Web Service request. The type of object and the data contained in it depends on theILcdOWSTransportobject used to perform this request. An example in the case of a HTTP transport connection is a map of request properties (seeURLConnection.getRequestProperties()) to be used for the request.- Specified by:
getTransportDatain interfaceILcdOWSRequest- Returns:
- an object representing data to be used by the transportation layer to perform this OGC Web Service request.
-
getRestEncoding
Returnsnull, REST encoding is not supported.- Specified by:
getRestEncodingin interfaceILcdOWSRequest- Parameters:
aBaseURI-- Returns:
null- Since:
- 2013.0
-