odc.geo.geom.line

odc.geo.geom.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[Tuple[float, float]]) – list of x,y coordinate tuples

Return type:

Geometry