Skip to content

Commit

Permalink
#446 Use current crs is EFS spatialReference cannot be parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSAMPERE committed Jul 11, 2023
1 parent f6e7808 commit 538eeaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/layer/geo_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 538eeaf

Please sign in to comment.