gis.db.models.Union

class Union(geo_field) Availability: PostGIS, Oracle, SpatiaLite This method returns a GEOSGeometry object comprising the union of every geometry in the queryset. Please note that use of Union is processor intensive and may take a significant amount of time on large querysets. Note If the computation time for using this method is too expensive, consider using Collect instead. Example: >>> u = Zipcode.objects.aggregate(Union(poly)) # This may take a long time. >>> u = Zip

gis.db.models.RasterField

class RasterField RasterField is currently only implemented for the PostGIS backend.

gis.db.models.PolygonField

class PolygonField

gis.db.models.PointField

class PointField

gis.db.models.MultiPolygonField

class MultiPolygonField

gis.db.models.MultiPointField

class MultiPointField

gis.db.models.MultiLineStringField

class MultiLineStringField

gis.db.models.MakeLine

class MakeLine(geo_field) Availability: PostGIS, SpatiaLite Returns a LineString constructed from the point field geometries in the QuerySet. Currently, ordering the queryset has no effect. Changed in Django 1.10: SpatiaLite support was added. Example: >>> qs = City.objects.filter(name__in=('Houston', 'Dallas')).aggregate(MakeLine('poly')) >>> print(qs['poly__makeline']) LINESTRING (-95.3631510000000020 29.7633739999999989, -96.8016109999999941 32.7820570000000018)

gis.db.models.LineStringField

class LineStringField

gis.db.models.GeoQuerySet.union()

GeoQuerySet.union(geom) Deprecated since version 1.9: Use the Union function instead. Returns the union of the geographic field with the given geometry in an union attribute on each element of the GeoQuerySet.