From 538eeaf7ca63ea8388cb6c500cc84da1685c9597 Mon Sep 17 00:00:00 2001 From: SimonSAMPERE <41120579+SimonSAMPERE@users.noreply.github.com> Date: Tue, 11 Jul 2023 12:36:00 +0200 Subject: [PATCH] #446 Use current crs is EFS spatialReference cannot be parsed --- modules/layer/geo_service.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/layer/geo_service.py b/modules/layer/geo_service.py index 71a88198..8cc23219 100644 --- a/modules/layer/geo_service.py +++ b/modules/layer/geo_service.py @@ -1174,7 +1174,10 @@ def build_efs_url(self, api_layer: dict, srv_details: dict): efs_base_url = efs_dict.get("base_url") # retrieve appropriate srs - srs = efs_dict.get("appropriate_srs") + if efs_dict.get("appropriate_srs") not in ["EPSG:None", ""] : + srs = efs_dict.get("appropriate_srs") + else: + srs = plg_tools.get_map_crs() # build EFS layer URI efs_uri = "crs='{}' ".format(srs)