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
| Attribute | Type | Description |
|---|---|---|
| name | string = MakeLine | The 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) = LineStringField | The 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
| Name | Type | Description |
|---|---|---|
| expression | [Expression](../../../../../db/models/expressions/expression.md?sid=django_db_models_expressions_expression) | The geometry field or expression to be aggregated into a line. |
| **extra | dict | Additional keyword arguments for the GeoAggregate base class, such as output_field or filter. |