opengis: force projection for GeoJSON (#85670)
gitea/passerelle/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2024-01-15 14:15:08 +01:00
parent 514c3f1995
commit ad6d1dbaf3
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ class OpenGIS(BaseResource):
'request': 'GetFeature',
self.get_typename_label(): typename or self.query_layer,
'outputFormat': self.get_output_format(),
# force usage of EPSG:4326 (=WGS 84) as required by GeoJSON
# https://www.rfc-editor.org/rfc/rfc7946#section-4
'srsName': 'EPSG:4326',
}
if property_name:
params['propertyName'] = property_name