:py:mod:`spatialtis_core.shape_ops` =================================== .. py:module:: spatialtis_core.shape_ops Module Contents --------------- .. py:function:: multipoints_bbox(points_collections: Sequence[spatialtis_core.types.Points]) -> Sequence[spatialtis_core.types.BoundingBox] A utility function to return minimum bounding box list of polygons :param points_collections: List of 2d points collections :returns: A list of bounding box (minx, miny, maxx, maxy) .. py:function:: multipolygons_area(points_collections: Sequence[spatialtis_core.types.Points]) -> Sequence[float] Calculate the area of polygons using shoelace formula :param points_collections: List of 2d points collections, represents a list of polygons :returns: The area of the polygons in list .. py:function:: points_bbox(points: spatialtis_core.types.Points) -> spatialtis_core.types.BoundingBox Return minimum bounding box of points :param points: A list of points :returns: The bounding box (minx, miny, maxx, maxy) or (minx, miny, minz, maxx, maxy, maxz) .. py:function:: points_shapes(polygons: List[spatialtis_core.types.Points], method: str = 'convex', concavity: float = 1.5) -> spatialtis_core.types.Points Acquire multipoints (shapes) that describe the points :param polygons: A list of polygons :param method: "convex" or "concave" :param concavity: Determine the concavity in concave hull :returns: A list of points .. py:function:: polygons_area(points: spatialtis_core.types.Points) -> float Calculate the area of polygons using shoelace formula :param points: A list of points represents a polygon :returns: The area of the polygon