Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetFeatureInfo: dimensions values are not passed to WMS source #212

Closed
jbo-ads opened this issue Nov 19, 2019 · 0 comments
Closed

GetFeatureInfo: dimensions values are not passed to WMS source #212

jbo-ads opened this issue Nov 19, 2019 · 0 comments

Comments

@jbo-ads
Copy link
Member

jbo-ads commented Nov 19, 2019

I want to forward a GetFeatureInfo to a WMS source through a MapCache WMTS service. That WMS source has a dimension and the MapCache tileset linked to it defines that dimension as well.

When I send a WMTS request with dimension, e.g.:

curl "http://localhost/mapcache/wmts?REQUEST=GetFeatureInfo&...&foo=bar"

I observe that the URL sent to WMS source is:

"http://remotehost/wms?REQUEST=GetFeatureInfo&...&foo=&dim_foo="

with no dimension value at all. I expect something like:

"http://remotehost/wms?REQUEST=GetFeatureInfo&...&foo=bar&dim_foo=bar"

Digging the code, I find in source_wms.c that the dimension value passed to WMS source uses rdim->cached_value field. When I replace it with rdim->requested_value, I get correct dimension values in the URL sent to WMS source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant