Skip to main content

Union

This class provides a geographic aggregation function that returns a single geometry representing the union of all geometries in a queryset. It inherits from the base aggregation framework and ensures the resulting output is handled as a geometry field.

Attributes

AttributeTypeDescription
namestring = UnionThe name of the aggregate operation, used for internal identification and SQL generation.
output_field_class[GeometryField](../../../forms/fields/geometryfield.md?sid=django_contrib_gis_forms_fields_geometryfield) = GeometryFieldThe field class used to represent the resulting spatial data type of the union operation.

Constructor

Signature

def Union()

Signature

def Union() - > null