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
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 |
The initialization function for geometry fields. In addition to the parameters from BaseSpatialField, it takes the following as keyword arguments:
USER_SDO_GEOM_METADATA
table. Defaults
to (-180.0, -90.0, 180.0, 90.0).USER_SDO_GEOM_METADATA
table. Defaults to 0.05.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
str
=
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