Skip to content


add disabled server test for gpkg getfeatureinfo filter
Browse files Browse the repository at this point in the history
  • Loading branch information
tudorbarascu committed Jun 28, 2018
1 parent 52664b6 commit deb9f59
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/src/python/
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,21 @@ def testGetFeatureInfoRelationReference(self):

# TODO make filter work with gpkg and move test inside testGetFeatureInfoFilter function
def testGetFeatureInfoFilterGPKG(self):
# 'test_project.qgz' ='test_project.qgs' but with a gpkg source + different fid
# Regression for #8656 Test getfeatureinfo response xml with gpkg datasource
# Mind the gap! (the space in the FILTER expression)
'&layers=testlayer%20%C3%A8%C3%A9&' +
'INFO_FORMAT=text%2Fxml&' +
'width=600&height=400&srs=EPSG%3A3857&' +
'query_layers=testlayer%20%C3%A8%C3%A9&' +
'FEATURE_COUNT=10&FILTER=testlayer%20%C3%A8%C3%A9' + urllib.parse.quote(':"NAME" = \'two\''),

def testGetFeatureInfoFilter(self):
# Test getfeatureinfo response xml

Expand Down
Binary file modified tests/testdata/qgis_server/db.gpkg
Binary file not shown.
Binary file added tests/testdata/qgis_server/test_project.qgz
Binary file not shown.
14 changes: 14 additions & 0 deletions tests/testdata/qgis_server/wms_getfeatureinfo_filter_gpkg.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Content-Length: 577
Content-Type: text/xml; charset=utf-8

<BoundingBox maxy="5606017.87425818" maxx="913214.67407005" miny="5606017.87425818" CRS="EPSG:3857" minx="913214.67407005"/>
<Layer name="testlayer èé">
<Feature id="2">
<Attribute value="2" name="id"/>
<Attribute value="two" name="name"/>
<Attribute value="two àò" name="utf8nameè"/>
<BoundingBox maxy="5606017.8743" maxx="913214.6741" miny="5606017.8743" CRS="EPSG:3857" minx="913214.6741"/>

0 comments on commit deb9f59

Please sign in to comment.