[bugfix] [MetaSearch] make gml:Envelope CRS explicit for spatial queries (fixes #17739)

This commit is contained in:
Tom Kralidis 2017-12-22 20:32:01 -05:00 committed by GitHub
parent b81bcf0f30
commit d14955cf81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -437,6 +437,8 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
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 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
# 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():