Skip to content
Advertisement

Define a circe that circumscribes a set of points (shapefile) in python

I have a shapefile of points, defined by X and Y coordinates, ad the ID feature. I have at least 3 different points with the same ID number.

I would like to define, for each ID, the shapefile of a circle that circumscribes the points.

How can this be done in python environment?

Advertisement

Answer

JavaScript
  • with sample example and visualisation, circles do become distorted due to epsg:4326 projection limitations

full working example

JavaScript

output

enter image description here

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