-
I tried the following: from pyproj import CRS
CRS(4326).to_string()
>>>> 'EPSG:4326'
str(CRS(4326))
>>>> 'epsg:4326' Any reason why these are not the same ? |
Beta Was this translation helpful? Give feedback.
Answered by
snowman2
Aug 12, 2022
Replies: 1 comment
-
to_string attempts to convert to an authority string and falls back to the user input. It has more overhead to run. Calling |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
12rambau
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to_string attempts to convert to an authority string and falls back to the user input. It has more overhead to run. Calling
str
calls the__str__
method which returns the user input directly.