1

I'm trying to retrieve the informations about points around the mouse click. However if the click is not on the inside the symbol but just outside, the WMS returns an empty response.

To simplify the question here are two screenshots:

Here the response of the server contains the information

Here the response of the server contains the information

Here the response of the server contains nothing

Here the response of the server contains nothing because the point is in the middle.

I would like to know if there is a way to ask the GeoServer WMS to return the features with more tolerance (given that the parameter feature_count is already set at 50)

1

You have probably hit a side effect of heavy work what was done with GeoServer GetFeatureInfo to return info from what is exactly rendered on the map. With the style used in your map there is nothing rendered between the markers.

You can have a try by adding a buffer vender parameter into your GetFeatureInfo request. The default value is 3, try to add &buffer=10 into your request http://docs.geoserver.org/stable/en/user/services/wms/reference.html

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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