Skip to content

Commit 4f64cdb

Browse files
authored
Update coord_utils.py
1 parent f1af956 commit 4f64cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyinfraformat/core/coord_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def coord_str_recognize(input_string):
4747
except pyproj.exceptions.CRSError as error:
4848
error_string = error.args[0]
4949
if "several objects matching this name" not in error_string:
50-
if "unrecognized format / unknown name" in error_string:
51-
return pyproj.CRS.from_user_input("ETRS " + input_string)
50+
if ("unrecognized format / unknown name" in error_string) and ("ETRS" not in input_string):
51+
return coord_str_recognize("ETRS " + input_string)
5252
raise
5353
error_string = error_string[error_string.rfind(": ") + 2 : -1]
5454
projections = error_string.split(",")

0 commit comments

Comments
 (0)