From a947f6dc6c3f845d543419cdb8ee0876ad082774 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Fri, 22 Dec 2017 20:29:12 -0500 Subject: [PATCH] [bugfix] [MetaSearch] make gml:Envelope CRS explicit for spatial queries (fixes #17739) --- python/plugins/MetaSearch/dialogs/maindialog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/plugins/MetaSearch/dialogs/maindialog.py b/python/plugins/MetaSearch/dialogs/maindialog.py index 6b8267ecdd2a..15d16dbed03f 100644 --- a/python/plugins/MetaSearch/dialogs/maindialog.py +++ b/python/plugins/MetaSearch/dialogs/maindialog.py @@ -437,6 +437,8 @@ def search(self): self.timeout = self.spnTimeout.value() # bbox + # CRS is WGS84 with axis order longitude, latitude + # defined by 'urn:ogc:def:crs:OGC:1.3:CRS84' minx = self.leWest.text() miny = self.leSouth.text() maxx = self.leEast.text() @@ -447,7 +449,8 @@ def search(self): # even for a global bbox, if a spatial filter is applied, then # the CSW server will skip records without a bbox if bbox != ['-180', '-90', '180', '90']: - self.constraints.append(BBox(bbox)) + self.constraints.append(BBox(bbox, + crs='urn:ogc:def:crs:OGC:1.3:CRS84')) # keywords if self.leKeywords.text():