Skip to content

Commit a947f6d

Browse files
authored
[bugfix] [MetaSearch] make gml:Envelope CRS explicit for spatial queries (fixes #17739)
1 parent b06f99b commit a947f6d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/plugins/MetaSearch/dialogs/maindialog.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ def search(self):
437437
self.timeout = self.spnTimeout.value()
438438

439439
# bbox
440+
# CRS is WGS84 with axis order longitude, latitude
441+
# defined by 'urn:ogc:def:crs:OGC:1.3:CRS84'
440442
minx = self.leWest.text()
441443
miny = self.leSouth.text()
442444
maxx = self.leEast.text()
@@ -447,7 +449,8 @@ def search(self):
447449
# even for a global bbox, if a spatial filter is applied, then
448450
# the CSW server will skip records without a bbox
449451
if bbox != ['-180', '-90', '180', '90']:
450-
self.constraints.append(BBox(bbox))
452+
self.constraints.append(BBox(bbox,
453+
crs='urn:ogc:def:crs:OGC:1.3:CRS84'))
451454

452455
# keywords
453456
if self.leKeywords.text():

0 commit comments

Comments
 (0)