gis.gdal.GDALRaster.origin

origin Coordinates of the top left origin of the raster in the spatial reference system of the source, as a point object with x and y members. >>> rst = GDALRaster({'width': 10, 'height': 20, 'srid': 4326}) >>> rst.origin [0.0, 0.0] >>> rst.origin.x = 1 >>> rst.origin [1.0, 0.0]

middleware.locale.LocaleMiddleware.response_redirect_class

LocaleMiddleware.response_redirect_class Defaults to HttpResponseRedirect. Subclass LocaleMiddleware and override the attribute to customize the redirects issued by the middleware.

views.generic.dates.BaseTodayArchiveView

class BaseTodayArchiveView [source]

db.models.Transform.output_field

output_field Defines the class this transformation outputs. It must be a Field instance. By default is the same as its lhs.output_field.

forms.RegexField.regex

regex A regular expression specified either as a string or a compiled regular expression object. Also takes max_length, min_length, and strip, which work just as they do for CharField.

views.decorators.http.require_GET()

require_GET() Decorator to require that a view only accepts the GET method.

forms.BoundField.data

BoundField.data This property returns the data for this BoundField extracted by the widget’s value_from_datadict() method, or None if it wasn’t given: >>> unbound_form = ContactForm() >>> print(unbound_form['subject'].data) None >>> bound_form = ContactForm(data={'subject': 'My Subject'}) >>> print(bound_form['subject'].data) My Subject

utils.encoding.force_unicode()

force_unicode(s, encoding='utf-8', strings_only=False, errors='strict') Historical name of force_text(). Only available under Python 2.

http.FileResponse

class FileResponse [source] FileResponse is a subclass of StreamingHttpResponse optimized for binary files. It uses wsgi.file_wrapper if provided by the wsgi server, otherwise it streams the file out in small chunks. FileResponse expects a file open in binary mode like so: >>> from django.http import FileResponse >>> response = FileResponse(open('myfile.png', 'rb'))

gis.db.models.functions.IsValid

class IsValid(expr) New in Django 1.10. Availability: PostGIS Accepts a geographic field or expression and tests if the value is well formed. Returns True if its value is a valid geometry and False otherwise.