Package com.luciad.wms.client.model
Class TLcdWMSGetFeatureInfoRequest
java.lang.Object
com.luciad.wms.client.model.TLcdWMSGetFeatureInfoRequest
- All Implemented Interfaces:
ILcdOWSRequest
A class which represents a WMS GetFeatureInfo request. Instances of this class can be created using the
TLcdWMSClient.createGetFeatureInfoRequest() method. This method will ensure a
request object is created that is compatible with the WMS version implemented by the WMS server.
This class can be passed to the TLcdWMSClient.getFeatureInfo(TLcdWMSGetFeatureInfoRequest)
method. This is low level API though. There is higher level API available to perform GetFeatureInfo
request, see TLcdWMSGetFeatureInfoContext.
It currently only supports KVP encoding as there is no XML Schema available for this type of request.
- 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.voidsetAdditionalParameters(Map<String, String> aParameters) Sets a map containing additional (vendor-specific) parameters which should be used in the KVP request.voidsetFeatureCount(int aFeatureCount) Sets the optional 'feature_count' parameter of the request.voidsetGetMapRequest(TLcdWMSGetMapRequest aGetMapRequest) Sets the 'GetMap' request which created the map for which we request feature info.voidsetInfoFormat(String aFormat) Sets the mandatory 'info_format' parameter of the request.voidsetQueryLayerNames(List<String> aLayerNames) Sets mandatory 'query_layers' parameter of the request.voidsetTransportData(Object aTransportData) Sets an object representing data to be used by the transportation layer (seeILcdOWSTransport) to perform this OGC Web Service request.voidsetX(int aX) Sets the mandatory 'X' ( or 'I') parameter of the request which specifies the pixel for which feature info is requested.voidsetY(int aY) Sets the mandatory 'Y' ( or 'J') parameter of the request which specifies the pixel for which feature info is requested.
-
Method Details
-
setGetMapRequest
Sets the 'GetMap' request which created the map for which we request feature info. The paramters of this request will be used in the 'GetFeatureInfo' request.- Parameters:
aGetMapRequest- A valid 'GetMap' request.
-
setQueryLayerNames
Sets mandatory 'query_layers' parameter of the request.- Parameters:
aLayerNames- A list of layer names corresponding to layers which where used in the 'GetMap' request.
-
setInfoFormat
Sets the mandatory 'info_format' parameter of the request. This specifies the format which should be returned by the server.- Parameters:
aFormat- A mime type corresponding to a feature info format in the capabilities of the server.
-
setFeatureCount
public void setFeatureCount(int aFeatureCount) Sets the optional 'feature_count' parameter of the request. It specifies the maximum number of features per layer for which information should be returned.- Parameters:
aFeatureCount- An integer specifying the maximum number of features, if smaller than or equal to zero, the parameter will be cleared.
-
setX
public void setX(int aX) Sets the mandatory 'X' ( or 'I') parameter of the request which specifies the pixel for which feature info is requested.- Parameters:
aX- A value between 0 and the width of the map.
-
setY
public void setY(int aY) Sets the mandatory 'Y' ( or 'J') parameter of the request which specifies the pixel for which feature info is requested.- Parameters:
aY- A value between 0 and the height of the map.
-
setAdditionalParameters
Sets a map containing additional (vendor-specific) parameters which should be used in the KVP request.- Parameters:
aParameters- A Map with String keys and String values.- Since:
- 2017.1
-
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
-