Hi I am trying to send a GetFeatureInfo request using WMS v1.3.0 via OpenLayers but am receiving the below error message from GeoWebCache:
"400: The parameters for x and y must both be positive integers." On looking at the GeoServer reference manual<https://docs.geoserver.org/stable/en/user/services/wms/reference.html>, when working with v1.3.0 it should be using the 'I' and 'J' parameters rather than 'X' and 'Y' - if I change it to 'X' and 'Y' it works but OpenLayers uses 'I' and 'J' for its WMS request. I am using GeoServer v2.13.1 and OpenLayers v5.3. Please see examples below: (Using WMS version 1.3.0 and I/J parameters - not working) https://maps.runnymede.gov.uk/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=council%3Apolling_districts&LAYERS=council%3Apolling_districts&SRS=EPSG%3A27700&TILED=true&INFO_FORMAT=application%2Fjson&I=174&J=127&WIDTH=256&HEIGHT=256&CRS=EPSG%3A27700&STYLES=&BBOX=492761%2C164864%2C499929%2C172032 (Using WMS version 1.3.0 and X/Y parameters - working) https://maps.runnymede.gov.uk/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=council%3Apolling_districts&LAYERS=council%3Apolling_districts&SRS=EPSG%3A27700&TILED=true&INFO_FORMAT=application%2Fjson&X=174&Y=127&WIDTH=256&HEIGHT=256&CRS=EPSG%3A27700&STYLES=&BBOX=492761%2C164864%2C499929%2C172032 Think before you print this. We are committed to being transparent about why and how we collect and use your personal data. Please see our Privacy Statement for further details. This message, and associated files, is intended only for the use of the individual or entity to which it is addressed and may contain information that is confidential or subject to copyright. If you are not the intended recipient please note that any copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately. Opinions, conclusions and other information in this message that do not relate to the official business of Runnymede Borough Council shall be understood as neither given nor endorsed by Runnymede Borough Council.
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
