Skip to content

Commit 04b18f4

Browse files
committedDec 22, 2017
[bugfix] [MetaSearch] make gml:Envelope CRS explicit for spatial queries
(fixes #17739)
1 parent e16dfe4 commit 04b18f4

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
@@ -456,6 +456,8 @@ def search(self):
456456
self.timeout = self.spnTimeout.value()
457457

458458
# bbox
459+
# CRS is WGS84 with axis order longitude, latitude
460+
# defined by 'urn:ogc:def:crs:OGC:1.3:CRS84'
459461
minx = self.leWest.text()
460462
miny = self.leSouth.text()
461463
maxx = self.leEast.text()
@@ -466,7 +468,8 @@ def search(self):
466468
# even for a global bbox, if a spatial filter is applied, then
467469
# the CSW server will skip records without a bbox
468470
if bbox != ['-180', '-90', '180', '90']:
469-
self.constraints.append(BBox(bbox))
471+
self.constraints.append(BBox(bbox,
472+
crs='urn:ogc:def:crs:OGC:1.3:CRS84'))
470473

471474
# keywords
472475
if self.leKeywords.text():

0 commit comments

Comments
 (0)
Please sign in to comment.