gis.db.models.GeoQuerySet.mem_size()

GeoQuerySet.mem_size(**kwargs) Deprecated since version 1.9: Use the MemSize function instead. Availability: PostGIS Returns the memory size (number of bytes) that the geometry field takes in a mem_size attribute on each element of the GeoQuerySet.

gis.db.models.GeoQuerySet.num_geom()

GeoQuerySet.num_geom(**kwargs) Deprecated since version 1.9: Use the NumGeometries function instead. Availability: PostGIS, Oracle, SpatiaLite Returns the number of geometries in a num_geom attribute on each element of the GeoQuerySet if the geometry field is a collection (e.g., a GEOMETRYCOLLECTION or MULTI* field); otherwise sets with None.

gis.db.models.GeoQuerySet.kml()

GeoQuerySet.kml(**kwargs) Deprecated since version 1.9: Use the AsKML function instead. Availability: PostGIS, SpatiaLite Attaches a kml attribute to every model in the queryset that contains the Keyhole Markup Language (KML) representation of the geometry fields. It should be noted that the contents of the KML are transformed to WGS84 if necessary. Example: >>> qs = Zipcode.objects.all().kml() >>> print(qs[0].kml) <Polygon><outerBoundaryIs><LinearRing>&

gis.db.models.GeoQuerySet.num_points()

GeoQuerySet.num_points(**kwargs) Deprecated since version 1.9: Use the NumPoints function instead. Availability: PostGIS, Oracle, SpatiaLite Returns the number of points in the first linestring in the geometry field in a num_points attribute on each element of the GeoQuerySet; otherwise sets with None.

gis.db.models.GeoQuerySet.gml()

GeoQuerySet.gml(**kwargs) Deprecated since version 1.9: Use the AsGML function instead. Availability: PostGIS, Oracle, SpatiaLite Attaches a gml attribute to every model in the queryset that contains the Geographic Markup Language (GML) representation of the geometry. Example: >>> qs = Zipcode.objects.all().gml() >>> print(qs[0].gml) <gml:Polygon srsName="EPSG:4326"><gml:OuterBoundaryIs>-147.78711,70.245363 ... -147.78711,70.245363</gml:OuterBoundaryIs>

gis.db.models.GeoQuerySet.intersection()

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

gis.db.models.GeoQuerySet.force_rhr()

GeoQuerySet.force_rhr(**kwargs) Deprecated since version 1.9: Use the ForceRHR function instead. Availability: PostGIS Returns a modified version of the polygon/multipolygon in which all of the vertices follow the Right-Hand-Rule, and attaches as a force_rhr attribute on each element of the queryset.

gis.db.models.GeoQuerySet.geohash()

GeoQuerySet.geohash(precision=20, **kwargs) Deprecated since version 1.9: Use the GeoHash function instead. Attaches a geohash attribute to every model the queryset containing the GeoHash representation of the geometry.

gis.db.models.GeoQuerySet.geojson()

GeoQuerySet.geojson(**kwargs) Deprecated since version 1.9: Use the AsGeoJSON function instead. Availability: PostGIS, SpatiaLite Attaches a geojson attribute to every model in the queryset that contains the GeoJSON representation of the geometry. Keyword Argument Description precision It may be used to specify the number of significant digits for the coordinates in the GeoJSON representation – the default value is 8. crs Set this to True if you want the coordinate reference system to be i

gis.db.models.GeoQuerySet.envelope()

GeoQuerySet.envelope(**kwargs) Deprecated since version 1.9: Use the Envelope function instead. Availability: PostGIS, SpatiaLite Returns a geometry representing the bounding box of the geometry field in an envelope attribute on each element of the GeoQuerySet.