[Geoserver-devel] [JIRA] (GEOS-9770) Cascading WMS server sets invalid I and J when using EPSG:3006 on GetFeatureInfo calls

Mattias Pantzare created an issue

GeoServer / BugGEOS-9770

Cascading WMS server sets invalid I and J when using EPSG:3006 on GetFeatureInfo calls

Issue Type:

BugBug

Affects Versions:

2.17.2

Assignee:

Unassigned

Created:

14/Oct/20 2:00 PM

Environment:

Tested on geoserver 2.17.2 and compiled from source on the master branch.

Priority:

MediumMedium

Reporter:

Mattias Pantzare

Set up a cascading WMS service to whit this Capabilities URL: http://resource.sgu.se/service/wms/130/brunnar?

Publish the layer SE.GOV.SGU.BRUNNAR.250K

Try go call GetFeatureInfo with CRS EPSG:3006

Request from the browser:

http://localhost:8080/geoserver/test/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng8&TRANSPARENT=true&QUERY_LAYERS=SE.GOV.SGU.BRUNNAR.250K&LAYERS=SE.GOV.SGU.BRUNNAR.250K&INFO_FORMAT=application%2Fjson&FEATURE_COUNT=5&I=107&J=2&WIDTH=512&HEIGHT=512&CRS=EPSG%3A3006&STYLES=&BBOX=7291710.72%2C832252.7999999999%2C7294004.4799999995%2C834546.5599999999

Cascading request:

2020-10-14 13:31:04,845 DEBUG [data.ows] - Executed request to URL: http://maps3.sgu.se:80/geoserver/grundvatten/ows?FORMAT=image%2Fpng&CRS=EPSG:3006&INFO_FORMAT=application/vnd.ogc.gml&STYLES=&I=1442353&WIDTH=512&J=1442248&SERVICE=WMS&TRANSPAREN
T=TRUE&HEIGHT=512&LAYERS=SE.GOV.SGU.BRUNNAR.250K&REQUEST=GetFeatureInfo&BBOX=7291710.72,832252.7999999999,7294004.4799999995,834546.5599999999&VERSION=1.3.0&QUERY_LAYERS=SE.GOV.SGU.BRUNNAR.250K&FEATURE_COUNT=5

Notice that the I and J parameters now have invalid values.

The transformation happens in org.geotools.ows.wms.map.WMSLayer#getFeatureInfo.
It tires to transform from SRS EPSG:3006 to EPSG:3006. But for some reason it thinks that the source CRS has AXIS NORTH/EAST, and the target CRS is AXIS EAST/NORTH.

Maybe it is selecting the geoserver internal CRS instead of the EPSG definition as the target CRS?

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100149-sha1:76ec96c)

Atlassian logo