utils.encoding.smart_str()

smart_str(s, encoding='utf-8', strings_only=False, errors='strict') Alias of smart_bytes() on Python 2 and smart_text() on Python 3. This function returns a str or a lazy string. For instance, this is suitable for writing to sys.stdout on Python 2 and 3.

gis.geos.GEOSGeometry.valid

GEOSGeometry.valid Returns a boolean indicating whether the geometry is valid.

core.signing.TimestampSigner.sign()

sign(value) [source] Sign value and append current timestamp to it.

gis.db.models.functions.SymDifference

class SymDifference(expr1, expr2, **extra) Availability: MySQL (≥ 5.6.1), PostGIS, Oracle, SpatiaLite Accepts two geographic fields or expressions and returns the geometric symmetric difference (union without the intersection) between the given parameters. Changed in Django 1.10: MySQL support was added.

gis.geos.WKBReader

class WKBReader Example: >>> from django.contrib.gis.geos import WKBReader >>> wkb_r = WKBReader() >>> wkb_r.read('0101000000000000000000F03F000000000000F03F') <Point object at 0x103a88910>

utils.html.escape()

escape(text) [source] Returns the given text with ampersands, quotes and angle brackets encoded for use in HTML. The input is first passed through force_text() and the output has mark_safe() applied.

gis.gdal.OGRGeometry.extent

extent Returns the envelope of this geometry as a 4-tuple, instead of as an Envelope object: >>> point.extent (0.0, 0.0, 5.0, 5.0)

gis.db.models.functions.PointOnSurface

class PointOnSurface(expression, **extra) Availability: PostGIS, Oracle, SpatiaLite Accepts a single geographic field or expression and returns a Point geometry guaranteed to lie on the surface of the field; otherwise returns None.

core.files.File.write()

write(content) Writes the specified content string to the file. Depending on the storage system behind the scenes, this content might not be fully committed until close() is called on the file.

views.generic.edit.FormMixin.get_prefix()

get_prefix() Determine the prefix for the generated form. Returns prefix by default.