I need some support to real a polygon. Today I have a string and I need to change in a format that is possible to recognize as a polygon.
I am acquiring directly from SQL the value of polygon:
Example:
I read on this way:
string = "POLYGON ((-47.158846224312285 -21.349760242365733;-47.158943117468695 -21.349706412900805;-47.159778541623055 -21.349008036758804))"
I need to change in this format
list = [(-47.158846224312285, -21.349760242365733), (47.158943117468695 -21.349706412900805), (-47.159778541623055, -21.349008036758804)]
Any idea how to modificate?