datacube.utils.geometry.multipolygon

datacube.utils.geometry.multipolygon(coords, crs)[source]

Create a 2D MultiPolygon

>>> multipolygon([[[(10, 10), (20, 20), (20, 10), (10, 10)]], [[(40, 10), (50, 20), (50, 10), (40, 10)]]], None)
Geometry(MULTIPOLYGON (((10 10,20 20,20 10,10 10)),((40 10,50 20,50 10,40 10))), None)
Parameters:coords (list) – list of lists of x,y coordinate tuples
Return type:Geometry