I'm having trouble converting a tuple containing the coordinates of polygon vertices to a shapefile.
Tuples are a very unfamiliar format to me; if it were in a dataframe, I could do it easily with geopandas.
shape= ({'type': 'Polygon',
'coordinates': [[(-148.7285301097261, 60.42704276401832),
(-148.7285301097261, 60.42693172262919),
(-148.7285856304207, 60.42693172262919),
(-148.72830802694787, 60.42704276401832),
(-148.7285301097261, 60.42704276401832)]]},
1.0)
I can't convert to dataframe via pd.DataFrame(shape)
; can't subset the tuple to access coordinates via shape['coordinates']
or pd.DataFrame(list(shape))
. I've reviewed this, and this, but am stuck on getting the coordinates out of the Tuple structure!
How can I create a shapefile (via Geopandas), given a tuple of the structure shown here?