Skip to content

Commit

Permalink
improve(georeader): fallback to EPSG registry is SRS name has been found
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Jun 6, 2024
1 parent 0c407a3 commit 5a306a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dicogis/georeaders/base_georeader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5a306a5

Please sign in to comment.