gis.geos.GEOSGeometry.srid

GEOSGeometry.srid Property that may be used to retrieve or set the SRID associated with the geometry. For example: >>> pnt = Point(5, 23) >>> print(pnt.srid) None >>> pnt.srid = 4326 >>> pnt.srid 4326

GeoDjango Utilities

The django.contrib.gis.utils module contains various utilities that are useful in creating geospatial Web applications. LayerMapping data import utilityExample LayerMapping API Troubleshooting OGR Inspectionogrinspect mapping GeoJSON Serializer

views.generic.dates.DayMixin.day

day Optional The value for the day, as a string. By default, set to None, which means the day will be determined using other means.

views.generic.dates.TodayArchiveView

class TodayArchiveView [source] A day archive page showing all objects for today. This is exactly the same as django.views.generic.dates.DayArchiveView, except today’s date is used instead of the year/month/day arguments. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseTodayArchiveView django.views.generic.dates.BaseDayArchiveView django.views.generic.dates.YearMixin django.views.gene

contenttypes.fields.GenericForeignKey.for_concrete_model

for_concrete_model If False, the field will be able to reference proxy models. Default is True. This mirrors the for_concrete_model argument to get_for_model().

gis.db.models.functions.GeoHash

class GeoHash(expression, precision=None, **extra) Availability: PostGIS, SpatiaLite (≥ 4.0, LWGEOM) Accepts a single geographic field or expression and returns a GeoHash representation of the geometry. The precision keyword argument controls the number of characters in the result. Changed in Django 1.10: SpatiaLite support was added.

gis.gdal.LineString

class LineString x Returns a list of X coordinates in this line: >>> OGRGeometry('LINESTRING (1 2,3 4)').x [1.0, 3.0] y Returns a list of Y coordinates in this line: >>> OGRGeometry('LINESTRING (1 2,3 4)').y [2.0, 4.0] z Returns a list of Z coordinates in this line, or None if the line does not have Z coordinates: >>> OGRGeometry('LINESTRING (1 2 3,4 5 6)').z [3.0, 6.0]

admin.models.LogEntry.action_flag

LogEntry.action_flag The type of action logged: ADDITION, CHANGE, DELETION. For example, to get a list of all additions done through the admin: from django.contrib.admin.models import LogEntry, ADDITION LogEntry.objects.filter(action_flag=ADDITION)

auth.backends.ModelBackend.authenticate()

authenticate(username=None, password=None, **kwargs) Tries to authenticate username with password by calling User.check_password. If no username is provided, it tries to fetch a username from kwargs using the key CustomUser.USERNAME_FIELD. Returns an authenticated user or None.

gis.gdal.SpatialReference.ellipsoid

ellipsoid Returns a tuple of the ellipsoid parameters for this spatial reference: (semimajor axis, semiminor axis, and inverse flattening).