I am encountering an issue with the transform function from the pyproj library. When I use the following code:
from pyproj import Proj, transform
x, y = transform(proj_latlon, proj_utm, longitude, latitude)
it works correctly the first time. However, if I call this function again within a working function or in subsequent calls, it results in an error. This behavior is causing problems in my application, as I need to perform multiple transformations within the same workflow.
Could you please help identify the cause of this issue and suggest a resolution?