class LineString(dtcc.Geometry)[source]

Public members

calculate_bounds()[source]

Calculate the bounding box of the line string.

property length

Calculate the length of the line string.

to_shapely()[source]

Convert the LineString to a Shapely LineString.

from_shapely(shape)[source]

Initialize the LineString from a Shapely LineString.

to_proto() Geometry[source]

Return a protobuf representation of the LineString.

from_proto(pb: Geometry | bytes, only_linestring_field=False)[source]

Initialize Geometry from a protobuf representation.

LineString(...)

Initialize self. See help(type(self)) for accurate signature.

__repr__()

Return repr(self).

__eq__(other)

Return self==value.

view()

View a LineString in 3D with a GLFW window.

vertices : ndarray
property bounds
add_field(field: Field)[source]

Add a field to the geometry.

transform : Transform
fields : list[Field]
to_json() str

Return a JSON representation of the object.

copy(**kwargs)

Return a copy of the object.

classmethod add_methods(module, name=None)

Adds methods from a module or function to the class.

classmethod print_methods(verbose=False)

Print the methods that have been added to the class.