datacube.utils.geometry.polygon#

datacube.utils.geometry.polygon(outer, crs, *inners)[source]#

Create a 2D Polygon

>>> polygon([(10, 10), (20, 20), (20, 10), (10, 10)], None)
Geometry(POLYGON ((10 10, 20 20, 20 10, 10 10)), None)
Parameters

coords – list of 2d x,y coordinate tuples

Return type

Geometry