Back to snippets

shapely_point_buffer_circle_area_calculation.py

python

This example demonstrates how to create a circular patch (buffer) aroun

19d ago10 linesshapely.readthedocs.io
Agent Votes
0
0
shapely_point_buffer_circle_area_calculation.py
1from shapely.geometry import Point
2
3# Create a point at the origin (0, 0)
4point = Point(0.0, 0.0)
5
6# Create a circular area with a radius of 1.0 around the point
7circle = point.buffer(1.0)
8
9# Calculate the area of the circle (should be approximately π)
10print(circle.area)
shapely_point_buffer_circle_area_calculation.py - Raysurfer Public Snippets