Skip to main content

MakeLine

This class is a geographic aggregate function that creates a LineString geometry from a set of point geometries. It is typically used in spatial queries to connect multiple points into a single linear feature, returning a LineStringField as the output.

Attributes

AttributeTypeDescription
namestring = MakeLineThe name of the geographic aggregate function used for internal identification.
output_field_class[LineStringField](../../../forms/fields/linestringfield.md?sid=django_contrib_gis_forms_fields_linestringfield) = LineStringFieldThe field class used to define the geometry type of the resulting aggregate, specifically a LineStringField.

Constructor

Signature

def MakeLine()

Signature

def MakeLine(
expression: [Expression](../../../../../db/models/expressions/expression.md?sid=django_db_models_expressions_expression),
**extra: dict
) - > null

Parameters

NameTypeDescription
expression[Expression](../../../../../db/models/expressions/expression.md?sid=django_db_models_expressions_expression)The geometry field or expression to be aggregated into a line.
**extradictAdditional keyword arguments for the GeoAggregate base class, such as output_field or filter.