org.geotools.data.wms.request
Interface GetFeatureInfoRequest

All Superinterfaces:
Request
All Known Implementing Classes:
AbstractGetFeatureInfoRequest

public interface GetFeatureInfoRequest
extends Request

Information required for a GetFeatureInfo request.

Q: queryableLayers is a Set - is this true? Or is order important Q: infoFormats - what does this do? Do these match up with querableLayers? Or is it a list of formats our client is willing to understand?

Author:
Richard Gould, Refractions Research

Field Summary
static java.lang.String FEATURE_COUNT
          Represents the FEATURE_COUNT parameter
static java.lang.String INFO_FORMAT
          Represents the INFO_FORMAT parameter
static java.lang.String QUERY_LAYERS
          Represents the QUERY_LAYERS parameter
static java.lang.String QUERY_X
          Represents the X parameter
static java.lang.String QUERY_Y
          Represents the Y parameter
 
Fields inherited from interface org.geotools.data.wms.request.Request
REQUEST, SERVICE, VERSION, WMTVER
 
Method Summary
 void addQueryLayer(Layer layer)
          Add a Layer to the set of layers to be queried in the request.
 void setFeatureCount(int featureCount)
           
 void setFeatureCount(java.lang.String featureCount)
           
 void setInfoFormat(java.lang.String infoFormat)
          Sets the INFO_FORMAT parameter, which specifies the format of the GetFeatureInfoResponse.
 void setQueryLayers(java.util.Set layers)
          An unordered set of type Layer.
 void setQueryPoint(int x, int y)
          The point on the image (in pixels) to be queried.
 
Methods inherited from interface org.geotools.data.wms.request.Request
getFinalURL, getProperties, setProperty
 

Field Detail

INFO_FORMAT

public static final java.lang.String INFO_FORMAT
Represents the INFO_FORMAT parameter

See Also:
Constant Field Values

FEATURE_COUNT

public static final java.lang.String FEATURE_COUNT
Represents the FEATURE_COUNT parameter

See Also:
Constant Field Values

QUERY_X

public static final java.lang.String QUERY_X
Represents the X parameter

See Also:
Constant Field Values

QUERY_Y

public static final java.lang.String QUERY_Y
Represents the Y parameter

See Also:
Constant Field Values

QUERY_LAYERS

public static final java.lang.String QUERY_LAYERS
Represents the QUERY_LAYERS parameter

See Also:
Constant Field Values
Method Detail

setQueryLayers

public void setQueryLayers(java.util.Set layers)
An unordered set of type Layer. These are the layers that the GetFeatureInfo request will be performed on.

Parameters:
layers - A Set of type Layer, each to be queried

addQueryLayer

public void addQueryLayer(Layer layer)
Add a Layer to the set of layers to be queried in the request. This Layer must have queryable set to true.

Parameters:
layer - a queryable Layer

setInfoFormat

public void setInfoFormat(java.lang.String infoFormat)
Sets the INFO_FORMAT parameter, which specifies the format of the GetFeatureInfoResponse. Valid values are available in getInfoFormats()

Parameters:
infoFormat - a value from getInfoFormats()

setFeatureCount

public void setFeatureCount(java.lang.String featureCount)
Parameters:
featureCount - the maximum number of features to return in the response

setFeatureCount

public void setFeatureCount(int featureCount)
Parameters:
featureCount - the maximum number of features to return in the response

setQueryPoint

public void setQueryPoint(int x,
                          int y)
The point on the image (in pixels) to be queried. The image is represented by the GetMapRequest passed into the constructor.

Parameters:
x - the x point, in pixels
y - the y point, in pixels


Copyright © GeoTools. All Rights Reserved.