gis.gdal.DataSource.layer_count

layer_count Returns the number of layers in the data source.

gis.gdal.OGRGeometry.equals()

equals(other) Returns True if this geometry is equivalent to the other, otherwise returns False.

postgres.operations.CreateExtension.name

name This is a required argument. The name of the extension to be installed.

db.migrations.operations.AlterModelTable

class AlterModelTable(name, table) [source] Changes the model’s table name (the db_table option on the Meta subclass).

gis.db.models.functions.NumPoints

class NumPoints(expression, **extra) Availability: MySQL, PostGIS, Oracle, SpatiaLite Accepts a single geographic field or expression and returns the number of points in the first linestring in the geometry field; otherwise returns None.

gis.db.models.functions.Perimeter

class Perimeter(expression, **extra) Availability: PostGIS, Oracle, SpatiaLite (≥ 4.0) Accepts a single geographic field or expression and returns the perimeter of the geometry field as a Distance object. On MySQL, a raw float value is returned, as it’s not possible to automatically determine the unit of the field.

views.generic.base.RedirectView.get_redirect_url()

get_redirect_url(*args, **kwargs) Constructs the target URL for redirection. The default implementation uses url as a starting string and performs expansion of % named parameters in that string using the named groups captured in the URL. If url is not set, get_redirect_url() tries to reverse the pattern_name using what was captured in the URL (both named and unnamed groups are used). If requested by query_string, it will also append the query string to the generated URL. Subclasses may imple

gis.geos.WKBWriter.write()

write(geom) Returns the WKB of the given geometry as a Python buffer object. Example: >>> from django.contrib.gis.geos import Point, WKBWriter >>> pnt = Point(1, 1) >>> wkb_w = WKBWriter() >>> wkb_w.write(pnt) <read-only buffer for 0x103a898f0, size -1, offset 0 at 0x103a89930>

views.generic.edit.ProcessFormView.post()

post(request, *args, **kwargs) Constructs a form, checks the form for validity, and handles it accordingly.

gis.gdal.SpatialReference.import_xml()

import_xml(xml) Import spatial reference from XML.