Unexpected WMS version parameter in getFeatureInfo request

I run the code below in Sandcastle. I specify WMS version = 1.3.0, and crs. The generated getMap requests have expected version/crs parameters. But the getFeatureInfo request generated when clicking on the map has wrong WMS version parameter (1.1.1).

var imageryLayers = viewer.imageryLayers;
imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({
url : ‘http://geo.ngu.no/mapserver/GranadaWMS3’,
layers : ‘GranadaWMS3’,
parameters : {
version: ‘1.3.0’,
crs : ‘CRS:84’,
transparent : true,
format : ‘image/png’
}
}));

Generated getFeatureInfo request:
http://geo.ngu.no/mapserver/GranadaWMS3?service=WMS&version=1.1.1&request=GetFeatureInfo&layers=GranadaWMS3&bbox=0%2C-90%2C180%2C90&width=256&height=256&crs=CRS%3A84&query_layers=GranadaWMS3&x=13&y=39&info_format=undefined

Have verified that the request give expected response if I change version and remove info_format parameter. Am I doing something wrong, or is this a bug?

Thanks for any help,
Tor Langeland

Hi,

The parameters for GetFeatureInfo are specified separately. Try:

imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({
url : ‘http://geo.ngu.no/mapserver/GranadaWMS3’,
layers : ‘GranadaWMS3’,
parameters : {
version: ‘1.3.0’,
crs : ‘CRS:84’,
transparent : true,
format : ‘image/png’
},

getFeatureInfoParameters : {

version: ‘1.3.0’
}

}));

Kevin

fredag 8. februar 2019 11.56.32 UTC+1 skrev Kevin Ring følgende:

Hi,

The parameters for GetFeatureInfo are specified separately. Try:

imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({
url : 'http://geo.ngu.no/mapserver/GranadaWMS3’,
layers : 'GranadaWMS3',
parameters : {
version: '1.3.0',
crs : 'CRS:84',
transparent : true,
format : 'image/png'
},
getFeatureInfoParameters : {
version: '1.3.0'
}
}));

Kevin

I run the code below in Sandcastle. I specify WMS version = 1.3.0, and crs. The generated getMap requests have expected version/crs parameters. But the getFeatureInfo request generated when clicking on the map has wrong WMS version parameter (1.1.1).

var imageryLayers = viewer.imageryLayers;

imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({

url : 'http://geo.ngu.no/mapserver/GranadaWMS3’,

layers : 'GranadaWMS3',

parameters : {

version: '1.3.0',

crs : 'CRS:84',

transparent : true,

format : 'image/png'

}

}));

Generated getFeatureInfo request:

http://geo.ngu.no/mapserver/GranadaWMS3?service=WMS&version=1.1.1&request=GetFeatureInfo&layers=GranadaWMS3&bbox=0%2C-90%2C180%2C90&width=256&height=256&crs=CRS%3A84&query_layers=GranadaWMS3&x=13&y=39&info_format=undefined

Have verified that the request give expected response if I change version and remove info_format parameter. Am I doing something wrong, or is this a bug?

Thanks for any help,

Tor Langeland

--

You received this message because you are subscribed to the Google Groups "cesium-dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

www.kotachrome.com/kevin

Thanks for your help!