Skip to content

Commit

Permalink
Merge pull request #5942 from tomkralidis/metasearch-explicit-crs
Browse files Browse the repository at this point in the history
[bugfix] [MetaSearch] make gml:Envelope CRS explicit for spatial queries (fixes #17739)
  • Loading branch information
tomkralidis committed Dec 23, 2017
2 parents f149730 + 04b18f4 commit 676bba2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugins/MetaSearch/dialogs/maindialog.py
Expand Up @@ -456,6 +456,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()
Expand All @@ -466,7 +468,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():
Expand Down

0 comments on commit 676bba2

Please sign in to comment.