from shapely.geometry import Point
from shapely.ops import unary_union
from shapely.geometry import mapping
import matplotlib.pyplot as plt
# 解析Polygon对象x:
def read_polygon(x):
x=mapping(x)
x=x['coordinates'][0]
lng=[];lat=[]
for i in x:
lng.append(i[0])
lat.append(i[1])
return {'lng':lng,'lat':lat}
# 生成几组多边形:
polygons = [Point(i, 0).buffer(0.7) for i in range(3)]
# 这是Polygon对象的序列