I formulate a GetFeatureInfo request that returns the feature information of the centre point of the map. The GetFeatureInfo request for WMS is:


enter image description here

Now, I want to ask, does this feature selected can be shown in an image format. I have tried to use the GetMap request (in WMS) for the above I & J values as:-


The result is as shown in figure:-

GetFeatureInfo response

Doesn't the map display only the map features containing the above I and J value? Can't image be produced using GetMap request for the particular I and J value? Why is this image displaying full?

  • 1
    Can't image be produced using GetMap request for the particular I and J value? No. a GetMap request needs bounding box. A GetFeatureInfo request is a request for what ever information the service wants to supply at a pixel location in a map
    – nmtoken
    Feb 4, 2022 at 11:25

1 Answer 1


You can ask that question from the WMS server with GetCapablities.


The section about GetFeatureInfo request contains the supported formats

<Format>text/xml; subtype=gml/3.1.1</Format>

None of these formats is image format. the meaning of the request is to return data about the selected feature and attributes cannot be expressed in image. But you can as the server to send the response back as GeoJSON


The response is


Now you could make your application to parse the GeoJSON and render the geometry on the map. But unfortunately the geometry that the server sends is nonsense, a multipolygon with all vertices at coordinates (4,51). I guess that is because the service provider does not want to send accurate geometries with GetFeatureInfo requests.

  • I assume 4,51 accurately portrays the point clicked
    – nmtoken
    Feb 4, 2022 at 11:17
  • As rounded info full degrees, yes. The clicked point calculated by the BBOX is at 4.36059536,50,83562031.
    – user30184
    Feb 4, 2022 at 11:25
  • @user30184 could you let me know how you figure out it
    – Walker
    Feb 4, 2022 at 17:38
  • BBOX is BBOX=4.2254877427993645,50.750177078705356,4.4957029774594135,50.921063532317916. Image size in GetMap is WIDTH=1500&HEIGHT=1500. The clicked pixel is in the middle of the BBOX of the GetMap because I=750&J=750.
    – user30184
    Feb 4, 2022 at 18:25
  • @user30184 Yes, it's According to GetFeature Info Request but My query is how you came to know the coordinate value is 4.36059536,50,83562031 for the center point of the map.
    – Walker
    Feb 4, 2022 at 19:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.