Extract points/coordinates from a polygon in Shapely
问题 How do you get/extract the points that define a shapely polygon? Thanks! Example of a shapely polygon 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) 回答1: So, I discovered the trick is to use a combination of the Polygon class methods to achieve this. If you want geodesic coordinates, you then need to transform these back to WGS84 (via pyproj , matplotlib 's basemap , or something). from shapely