The way my script works is that Im using for loop and then for each iteration I get the bouding box of the shape. For some reason I manage to use this script in the first iteration but the 2nd fail with the following error:
AttributeError: type object ‘CRS’ has no attribute ‘WGS84’
Is a bit hard for me to understand the source of this error as the shape in this case is the same as the shape on the first iteration, and then there was the ‘WGS84’ attribute, hence, I don’t understand why this attribute disappeard.
I know i’m not sharing here the full code, but I would like to know from your experience, what could raise such an error?
not sure how to check the type of the crs, as you can see in my script I define it inside the function.
I have tried to check what is the type but I get the same error:
cr=CRS.WGS84
AttributeError: type object 'CRS' has no attribute 'WGS84'
is there anyway I can make sure inside the function that is sentinel hub type? also, the weird thing is that it runs in the first iteration correct but only from the 2nd one it fails with this error.