Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using GetFeatureInfo query to WMS service. When I click a WMS object on the map, the response is coming.


But I want to send a request a polygonal area. Not a single x,y location. How can I do this? Is possible?

share|improve this question

You can only use a x,y (i,j) coordinate search for GetFeatureInfo requests

However, you may test for interactions with polygons (and many other geometries) using a Web Feature Service (WFS) request.


share|improve this answer
GetFeatureInfo actually takes only a point (x,y) or (i,j). You can buffer the point into a circle with the buffer vendor option…. For polygon, use WFS and Intersects filter as suggested. – user30184 Jul 24 '14 at 15:14

Usually a request for features is done on a featureservice (WFS) - esp. when you have a more complex logic like querying features within a given polygon. The GetFeatureInfo is designed to perform a feature-query based on the mouse-position in native (meaning display-) coordinates rather the geographic (transformed) coords. But it is indeed restricted to that single position (don´t get irritated: the BBOX param is the parameter for the map-size itself, it has nothing to do with your actual feature-query). If you have a GeoServer you may have a look at WMS reference also, but also if you don´t (the site deals for WebServices in general, no matter if GeoServer or not).

share|improve this answer

With Geoserver you might want to have a try with the CQL filters which are much easier to write than the official OGC style XML/GML filters.

I took the "DISJOINT" example from the manual and converted into WFS GetFeature request with INTERSECTS filter. You can test it with the demo server of Boundless with this request, POLYGON((-90 40, -90 45, -60 45, -60 40, -90 40)))

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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