The Polygon class in the shapely.geometry module of Python's Shapely library represents a two-dimensional polygon geometry. It is an immutable sequence of points in a 2D Cartesian plane that form a closed shape with straight sides and defined by its boundary. The Polygon class provides various methods and attributes to work with polygons, such as calculating its area, perimeter, centroid, and performing geometric operations like intersection, union, and difference with other polygons. It also supports a range of spatial predicates, including checking if a point is inside or on the boundary of the polygon. The Polygon class is commonly used in GIS (Geographic Information System) applications and computational geometry tasks.
Python Polygon.Polygon - 30 examples found. These are the top rated real world Python examples of shapely.geometry.Polygon.Polygon extracted from open source projects. You can rate examples to help us improve the quality of examples.