因此,我发现诀窍是使用
Polygon类方法的组合来实现。
如果你想测地坐标,然后需要转换(通过这些回WGS84
pyproj,
matplotlib的
basemap,或东西)。
from shapely.geometry import Polygon#Create polygon from lists of pointsx = [list of x vals]y = [list of y vals]some_poly = Polygon(x,y)# Extract the point values that define the perimeter of the polygonx, y = some_poly.exterior.coords.xy



