gis.geos.WKBWriter.write_hex()

write_hex(geom) Returns WKB of the geometry in hexadecimal. Example: >>> from django.contrib.gis.geos import Point, WKBWriter >>> pnt = Point(1, 1) >>> wkb_w = WKBWriter() >>> wkb_w.write_hex(pnt) '0101000000000000000000F03F000000000000F03F'

gis.gdal.OGRGeometry.overlaps()

overlaps(other) Returns True if this geometry overlaps the other, otherwise returns False.

forms.Form.changed_data

Form.changed_data The changed_data attribute returns a list of the names of the fields whose values in the form’s bound data (usually request.POST) differ from what was provided in initial. It returns an empty list if no data differs. >>> f = ContactForm(request.POST, initial=data) >>> if f.has_changed(): ... print("The following fields changed: %s" % ", ".join(f.changed_data))

apps.apps.get_app_configs()

apps.get_app_configs() Returns an iterable of AppConfig instances.

postgres.fields.RangeField

class RangeField(**options) [source] Base class for model range fields. base_field The model field class to use. range_type The psycopg2 range type to use. form_field The form field class to use. Should be a subclass of django.contrib.postgres.forms.BaseRangeField.

gis.geoip.GeoIP.info

GeoIP.info This property returns information about all GeoIP databases (both city and country), and the version of the GeoIP C library (if supported).

db.transaction.commit()

commit(using=None) [source]

views.decorators.csrf.csrf_protect()

csrf_protect(view) Decorator that provides the protection of CsrfViewMiddleware to a view. Usage: from django.views.decorators.csrf import csrf_protect from django.shortcuts import render @csrf_protect def my_view(request): c = {} # ... return render(request, "a_template.html", c) If you are using class-based views, you can refer to Decorating class-based views.

gis.gdal.LineString.y

y Returns a list of Y coordinates in this line: >>> OGRGeometry('LINESTRING (1 2,3 4)').y [2.0, 4.0]

gis.gdal.OGRGeometry.wkb_size

wkb_size Returns the size of the WKB buffer needed to hold a WKB representation of this geometry: >>> OGRGeometry('POINT(1 2)').wkb_size 21