class GeometryField(BaseSpatialField): (source)
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
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 |
Undocumented |
Method | deconstruct |
Undocumented |
Method | formfield |
Undocumented |
Method | select |
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 |
Undocumented |
Class Variable | geom |
Undocumented |
Instance Variable | dim |
Undocumented |
Instance Variable | geography |
Undocumented |
Instance Variable | _extent |
Undocumented |
Instance Variable | _tolerance |
Undocumented |
Inherited from BaseSpatialField
:
Method | db |
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 |
Undocumented |
Method | get |
Return the placeholder for the spatial column for the given value. |
Method | get |
Undocumented |
Method | get |
Return a GDALRaster if conversion is successful, otherwise return None. |
Method | get |
Return the default SRID for the given geometry or raster, taking into account the SRID set for the field. For example, if the input geometry or raster doesn't have an SRID, then the SRID of the field will be returned. |
Method | spheroid |
Undocumented |
Method | units |
Undocumented |
Method | units |
Undocumented |
Class Variable | empty |
Undocumented |
Instance Variable | spatial |
Undocumented |
Instance Variable | srid |
Undocumented |
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.
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.
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
Undocumented
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
Undocumented