Skip to content

Commit

Permalink
Enhancement: fallback to epsg registry if srs code exists (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Jun 6, 2024
2 parents edefe29 + e0c823c commit 68ce3f5
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 68ce3f5

Please sign in to comment.