问题描述
如果你想测地坐标,然后需要转换(通过这些回wgs84 pyproj
,matplotlib
的basemap
,或东西)。
from shapely.geometry import polygon
#Create polygon from lists of points
x = [list of x vals]
y = [list of y vals]
some_poly = polygon(x,y)
# Extract the point values that define the perimeter of the polygon
x, y = some_poly.exterior.coords.xy
解决方法
如何获取/提取定义shapely
多边形的点?谢谢!
形状多边形的示例
from shapely.geometry import Polygon
# Create polygon from lists of points
x = [list of x vals]
y = [list of y vals]
polygon = Polygon(x,y)