@@ -433,7 +433,7 @@ def testGetFeatureInfoTolerance(self):
433
433
'test_project_values.qgz' )
434
434
435
435
def testGetFeatureInfoJSON (self ):
436
- # simple test without geometry
436
+ # simple test without geometry and info_format=application/json
437
437
self .wms_request_compare ('GetFeatureInfo' ,
438
438
'&layers=testlayer%20%C3%A8%C3%A9&styles=&' +
439
439
'info_format=application%2Fjson&transparent=true&' +
@@ -442,6 +442,15 @@ def testGetFeatureInfoJSON(self):
442
442
'query_layers=testlayer%20%C3%A8%C3%A9&X=190&Y=320' ,
443
443
'wms_getfeatureinfo_json' )
444
444
445
+ # simple test without geometry and info_format=application/geo+json
446
+ self .wms_request_compare ('GetFeatureInfo' ,
447
+ '&layers=testlayer%20%C3%A8%C3%A9&styles=&' +
448
+ 'info_format=application%2Fgeo+json&transparent=true&' +
449
+ 'width=600&height=400&srs=EPSG%3A3857&bbox=913190.6389747962%2C' +
450
+ '5606005.488876367%2C913235.426296057%2C5606035.347090538&' +
451
+ 'query_layers=testlayer%20%C3%A8%C3%A9&X=190&Y=320' ,
452
+ 'wms_getfeatureinfo_json' )
453
+
445
454
# test with several features and several layers
446
455
self .wms_request_compare ('GetFeatureInfo' ,
447
456
'&layers=testlayer%20%C3%A8%C3%A9,fields_alias,exclude_attribute&styles=&' +
0 commit comments