The python shapely.geometry.Polygon is a class that represents a two-dimensional polygon in a Cartesian plane. It is part of the Shapely library, which provides geometric operations and shapes for spatial analysis. The Polygon class allows for the creation and manipulation of polygons, including calculating areas, perimeters, and performing spatial operations like intersections and unions. It also provides methods for checking if a point is within or on the boundary of the polygon, as well as for simplifying or buffering the shape. This class is a useful tool for various applications, such as geographic information systems (GIS), computer graphics, and geometric modeling.
Python Polygon - 60 examples found. These are the top rated real world Python examples of shapely.geometry.Polygon extracted from open source projects. You can rate examples to help us improve the quality of examples.