From e0c823cb65925f16c2f8db6d059ae7b24d4aff66 Mon Sep 17 00:00:00 2001 From: "Julien M." Date: Thu, 6 Jun 2024 12:47:40 +0200 Subject: [PATCH] improve(georeader): fallback to EPSG registry is SRS name has been found --- dicogis/georeaders/base_georeader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dicogis/georeaders/base_georeader.py b/dicogis/georeaders/base_georeader.py index c2d39229..085e3e1f 100644 --- a/dicogis/georeaders/base_georeader.py +++ b/dicogis/georeaders/base_georeader.py @@ -276,7 +276,10 @@ def get_srs_details( else: srs_code = "srs_no_epsg" + # registry srs_registry = layer_spatial_ref.GetAuthorityName(None) + if not srs_registry and srs_code: + srs_registry = "EPSG" # srs type srs_type = self.get_srs_type(object_spatial_reference=layer_spatial_ref)