datacube.utils.geometry.line

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

Create a 2D LineString (Connected set of lines)

>>> line([(10, 10), (20, 20), (30, 40)], None)
Geometry(LINESTRING (10 10,20 20,30 40), None)
Parameters:coords (list) – list of x,y coordinate tuples
Return type:Geometry