class BaseSpatialField(Field): (source)
Known subclasses: django.contrib.gis.db.models.fields.GeometryField
, django.contrib.gis.db.models.fields.RasterField
The Base GIS Field. It's used as a base class for GeometryField and RasterField. Defines properties that are common to all GIS fields such as the characteristics of the spatial reference system of the field.
Method | __init__ |
The initialization function for base spatial fields. Takes the following as keyword arguments: |
Method | db |
Undocumented |
Method | deconstruct |
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 | description |
Undocumented |
Class Variable | empty |
Undocumented |
Instance Variable | spatial |
Undocumented |
Instance Variable | srid |
Undocumented |
django.contrib.gis.db.models.fields.GeometryField
The initialization function for base spatial fields. Takes the following as keyword arguments: srid: The spatial reference system identifier, an OGC standard. Defaults to 4326 (WGS84). spatial_index: Indicates whether to create a spatial index. Defaults to True. Set this instead of 'db_index' for geographic fields since index creation is different for geometry columns.
Return true if this field's SRID corresponds with a coordinate system that uses non-projected units (e.g., latitude/longitude).
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.
django.contrib.gis.db.models.fields.GeometryField
, django.contrib.gis.db.models.fields.RasterField
Undocumented