[Geoserver-devel] [jira] (GEOS-5961) GetFeatureInfo doesn't round scales

Jonathan Moules created BugGEOS-5961
GetFeatureInfo doesn’t round scales

Issue Type:

BugBug

Affects Versions:

2.3.4

Assignee:

Andrea Aime

Components:

WMS

Created:

08/Aug/13 1:11 AM

Description:

(Following the mailing list thread)
I have a layer with a threshold set to 1:40,000.

When I query it with GetFeatureInfo it doesn’t work:

http://wppgeog3/geoserver/ows?buffer=5&LAYERS=OS_CP_POLYGON_POSTCODES&QUERY_LAYERS=OS_CP_POLYGON_POSTCODES&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=427188.8%2C261509.2%2C438456%2C270234&FEATURE_COUNT=50&HEIGHT=779&WIDTH=1006&FORMAT=image%2Fpng&INFO_FORMAT=application%2Fvnd.ogc.gml&SRS=EPSG%3A27700&X=454&Y=362

GeoServer tells me that scale is 40,000.000000000044.

If I change the layer threshold to 1:40,001 the GetFeatureInfo works.

Conversely a GetMap request works out to at least 40,017 for the same layer.

Ideally GetFeatureInfo requests would be as flexible as GetMap requests, but at the very least they should use “round()” before comparing scales to mitigate this issue.

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Jonathan Moules

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)