[Geoserver-devel] [jira] (GEOS-6572) WMS GetFeatureInfo Request Returns Too Many Features

Jerome Wendell created an issue

GeoServer / BugGEOS-6572

WMS GetFeatureInfo Request Returns Too Many Features

Issue Type:

BugBug

Affects Versions:

2.5.1

Assignee:

Andrea Aime

Attachments:

Surface Tracts with labels.sld, Surface Tracts with labels.xml, wms_issue.zip

Components:

WMS

Created:

13/Jul/14 5:46 PM

Environment:

GeoServer 2.5.1 (stable version web archive download) and Tomcat 7.0.54 on a Windows 2008 R2 server

Fix Versions:

2.4.3

Priority:

MajorMajor

Reporter:

Jerome Wendell

I have several WMS layers in GeoServer that only contain polygons and are based on a shapefile data source. I am submitting WMS (Version 1.1.1) GetFeatureInfo requests from an OpenLayers map when a polygon is clicked on. When I select certain polygons on the WMS layer, a polygon adjacent to it and in some cases a polygon that isn’t even touching the clicked on polygon will be returned in the GetFeatureInfo response from GeoServer. Previously I was using GeoServer 2.4.3 and was not experiencing this behavior. In researching this issue, it seems to be related to the maxBuffer value in the wms.xml file. First I tried changing the buffer and maxBuffer parameters using vendorParams in the GetFeatureInfo request, but it did not change the response. I also tried reducing the maxBuffer value in wms.xml to 5 (which I think is the default value for the buffer parameter) and restarting Tomcat, but it did not change the behavior either. I tried setting the maxBuffer value to 1 and restarting Tomcat, but it did not change the behaviour For now, I have reverted back to the old GetFeatureInfo engine by adding the following to my JVM startup parameters:

-Dorg.geoserver.wms.featureinfo.render.enabled=false

By adding the above parameter, the GetFeatureInfo response is now being returned as before.

I have attached a sample of the data that I am using when the problem occurs, and the style file for the data. The coordinate reference system for the data is EPSG:4326. A sample request that is submitted when the behavior occurs is below:

http://mydomain:8090/geoserver/wv_data/wms?LAYERS=wv_data%3Awv_surface_tracts_2&QUERY_LAYERS=wv_data%3Awv_surface_tracts_2&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-8977807.237276%2C4767644.998879%2C-8960417.813343%2C4779110.55312&FEATURE_COUNT=40&HEIGHT=600&WIDTH=910&FORMAT=image%2Fpng&INFO_FORMAT=application%2Fvnd.ogc.gml&SRS=EPSG%3A900913&X=506&Y=210&BUFFER=0&MAXBUFFER=1

If any additional information is needed, please let me know.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo