Skip to content
Advertisement

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

JavaScript

Advertisement

Answer

The trick is to use a combination of the Polygon class methods:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement