GetFeatureInfo Requests

Feedback


Request parameter

Main request parameters of the GetFeatureInfo operation are shown in the following table:

Table 1 Main parameters of the GetFeatureInfo operation request

Request parameter O/M Description
VERSION=version

Optional

Request version numbers.

REQUEST=GetFeatureInfo

Optional

Request names.

Requests the GetFeatureInfo operation, and the request name needs to be set as "GetFeatureInfo".

<map_request_copy>

Optional

Parts of copies of GetMap request parameters.

Contains no VERSION and REQUEST parameters. Determines the queried target map, that is, queries on which map picture.

QUERY_LAYERS=layer_list

Optional

The layer list to be queried, and the layers are separated by English commas.

INFO_FORMAT=output_format

Optional

Return formats of feature information (MIME types).

FEATURE_COUNT=number

Mandatory

Feature number of the information to be returned (the default is 1).

Using (I, J) as the center, determines the initial search extent radius according to the request parameters BBOX, Width and Height in the GetMap operation, and searches on the specified query layer. If the query results are smaller than the value of user-specified number, doubles the search radius and continues to search; if the number of query results satisfies the feature number that users require to return, returns the results, or continues to increase the radius. When the search radius reaches 8 times of the initial search radius, ends the query and returns the query results, then goes into the query of next layer.

The query order of layers is consistent with the order in the list of layers to be queried.

I=pixel_column

Optional

The X coordinates of features represented by pixels (the leftmost side is 0, and increases progressively rightwards).

J=pixel_row

Optional

The Y coordinates of features represented by pixels (the uppermost side is 0, and increases progressively downwards).

EXCEPTIONS=exception_format

Mandatory

Exception error report formats of WMS (the default is application/vnd.ogc.se_xml).

Request example

Request methods of the GetFeatureInfo operation are as follows:

<ServiceRoot>?Version=version&REQUEST=GetFeatureInfo&<map_request_copy>& QUERY_LAYERS=layer_list&INFO_FORMAT=output_format&I=pixel_column&J=pixel_row

ServiceRoot is the service URI root directory. Please see Setting the Service URI.

For example, after the local SuperMap iServer 6R WMS 1.3.0 service is started successfully, URI of accessing the GetFeatureInfo operation is: http://localhost:8090/iserver/services/map-world/wms130/WorldMap_Day?VERSION=1.3.0&REQUEST=GetFeatureInfo&LAYERS=0.8,0.11,0.3&STYLES=&CRS=CRS:84&BBOX=-180,-90,180,90&WIDTH=800&HEIGHT=400&FORMAT=image/png&QUERY_LAYERS=0.11&INFO_FORMAT=text/xml&I=650&J=150.

Please refer to Response example to see the result.