Package org.geotools.ows.wms.request
Interface GetFeatureInfoRequest
- All Superinterfaces:
Request
- All Known Implementing Classes:
AbstractGetFeatureInfoRequest,WMS1_0_0.GetFeatureInfoRequest,WMS1_1_0.GetFeatureInfoRequest,WMS1_1_1.GetFeatureInfoRequest,WMS1_3_0.GetFeatureInfoRequest
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
FieldsModifier and TypeFieldDescriptionstatic final StringRepresents the FEATURE_COUNT parameterstatic final StringRepresents the INFO_FORMAT parameterstatic final StringRepresents the QUERY_LAYERS parameterstatic final StringRepresents the X parameterstatic final StringRepresents the Y parameter -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueryLayer(Layer layer) Add a Layer to the set of layers to be queried in the request.voidsetFeatureCount(int featureCount) voidsetFeatureCount(String featureCount) voidsetInfoFormat(String infoFormat) Sets the INFO_FORMAT parameter, which specifies the format of the GetFeatureInfoResponse.voidsetQueryLayers(Set<Layer> layers) An unordered set of type Layer.voidsetQueryPoint(int x, int y) The point on the image (in pixels) to be queried.Methods inherited from interface Request
createResponse, getFinalURL, getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setProperty, setRequestHints
-
Field Details
-
INFO_FORMAT
Represents the INFO_FORMAT parameter- See Also:
-
FEATURE_COUNT
Represents the FEATURE_COUNT parameter- See Also:
-
QUERY_X
Represents the X parameter- See Also:
-
QUERY_Y
Represents the Y parameter- See Also:
-
QUERY_LAYERS
Represents the QUERY_LAYERS parameter- See Also:
-
-
Method Details
-
setQueryLayers
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
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
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
- Parameters:
featureCount- the maximum number of features to return in the response
-
setFeatureCount
void setFeatureCount(int featureCount) - Parameters:
featureCount- the maximum number of features to return in the response
-
setQueryPoint
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 pixelsy- the y point, in pixels
-