CRS info added in WMS GetFeatureInfo requests#325
Conversation
Signed-off-by: Nikolaos Pringouris <nprigour@gmail.com>
|
Not really sure about this change, because @jodygarnett fixed getFeatureInfo Request a while ago (ec012ac) for WMS 1.3.0 requests, where this line has been commented. @jodygarnett Any ideas why? |
|
A while ago is almost 6 years back! Geotools have undergone several changes since then. |
| getmap.setBBox( bbox ); | ||
| String srs = CRS.toSRS(bbox.getCoordinateReferenceSystem() ); | ||
| //getmap.setSRS( code != null ? code : srs ); | ||
| getmap.setSRS( code != null ? code : srs ); |
There was a problem hiding this comment.
Can we cleanup commented line 211 with this pull request?
There was a problem hiding this comment.
I think yes. I let it there just because it was from the initial committer
|
Hi @fgdrf , How should we proceed with this PR? |
|
Wondering if there is a demo server for mapserver that supports WMS 1.3 out there. I'd like to test against before merging it. I do not expect any issues but lets verify first .. |
|
Try the following: http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1 (for wms 1.1.1 requests) |
|
Hmm, its working not as stable as expected. I was able to get information for Paris only once. Afterwards no information is shown in Information view. However I only tested with build applictaion and haven't debuged into getFeatureInfo Requests and Responses .. Any ideas? |
|
Hi @fgdrf, Now if used version 1.3 then getFeatureInfo requests are also sent in the following form: |
|
I expected a reproducable behaviour for the same city (in this cas Paris). However, I checked with second URL and replaced parameter CRS with SRS or even removed it and server responsed an error. With parameter CRS it doesn't and works as expected I going to write an unit test to verify CRS is set for GetFeatureInfo Requests if version is 1.3.0 |
|
Hi @fgdrf , Any progress on this PR? |
I started to write a test but its harder than expected to mock this with EasyMock. Sorry to say but I stoped a while ago (lack of time :().. Can you help here and provide a test to verify that uDig adds CRS parameter for version 1.3.0 requests...? |
During WMS GetFeatureInfo requests CRS (for WMS version 1.3.0) or SRS (for WMS version 1.1.1) are not provided in the request URL. This may cause problem when retrieving layer information (see also #316 for a more analytical description of the problem)
Signed-off-by: Nikolaos Pringouris nprigour@gmail.com