class documentation

class GeometryField(BaseSpatialField):

Known subclasses: django.contrib.gis.db.models.fields.GeometryCollectionField, django.contrib.gis.db.models.fields.LineStringField, django.contrib.gis.db.models.fields.MultiLineStringField, django.contrib.gis.db.models.fields.MultiPointField, django.contrib.gis.db.models.fields.MultiPolygonField, django.contrib.gis.db.models.fields.PointField, django.contrib.gis.db.models.fields.PolygonField

View In Hierarchy

The base Geometry field -- maps to the OpenGIS Specification Geometry type.
Method __init__ The initialization function for geometry fields. In addition to the parameters from BaseSpatialField, it takes the following as keyword arguments:
Method contribute​_to​_class Undocumented
Method deconstruct Undocumented
Method formfield Undocumented
Method select​_format Return the selection format string, depending on the requirements of the spatial backend. For example, Oracle and MySQL require custom selection formats in order to retrieve geometries in OGC WKB.
Class Variable description Undocumented
Class Variable geom​_class Undocumented
Class Variable geom​_type Undocumented
Instance Variable ​_extent Undocumented
Instance Variable ​_tolerance Undocumented
Instance Variable dim Undocumented
Instance Variable geography Undocumented

Inherited from BaseSpatialField:

Method db​_type Undocumented
Method geodetic Return true if this field's SRID corresponds with a coordinate system that uses non-projected units (e.g., latitude/longitude).
Method get​_db​_prep​_value Undocumented
Method get​_placeholder Return the placeholder for the spatial column for the given value.
Method get​_prep​_value Undocumented
Method get​_raster​_prep​_value Return a GDALRaster if conversion is successful, otherwise return None.
Method get​_srid No summary
Method spheroid Undocumented
Method units Undocumented
Method units​_name Undocumented
Class Variable empty​_strings​_allowed Undocumented
Instance Variable spatial​_index Undocumented
Instance Variable srid Undocumented
def __init__(self, verbose_name=None, dim=2, geography=False, *, extent=(-180.0, -90.0, 180.0, 90.0), tolerance=0.05, **kwargs):

The initialization function for geometry fields. In addition to the parameters from BaseSpatialField, it takes the following as keyword arguments:

dim:
The number of dimensions for this geometry. Defaults to 2.
extent:
Customize the extent, in a 4-tuple of WGS 84 coordinates, for the geometry field entry in the USER_SDO_GEOM_METADATA table. Defaults to (-180.0, -90.0, 180.0, 90.0).
tolerance:
Define the tolerance, in meters, to use for the geometry field entry in the USER_SDO_GEOM_METADATA table. Defaults to 0.05.
def contribute_to_class(self, cls, name, **kwargs):

Undocumented

def deconstruct(self):
def formfield(self, **kwargs):

Undocumented

def select_format(self, compiler, sql, params):
Return the selection format string, depending on the requirements of the spatial backend. For example, Oracle and MySQL require custom selection formats in order to retrieve geometries in OGC WKB.
geom_class =

Undocumented

_extent =

Undocumented

_tolerance =

Undocumented

dim =

Undocumented

geography =

Undocumented