class documentation

class SpatialRefSysMixin:

Known subclasses: django.contrib.gis.db.backends.oracle.models.OracleSpatialRefSys, django.contrib.gis.db.backends.postgis.models.PostGISSpatialRefSys, django.contrib.gis.db.backends.spatialite.models.SpatialiteSpatialRefSys

View In Hierarchy

The SpatialRefSysMixin is a class used by the database-dependent SpatialRefSys objects to reduce redundant code.
Class Method get​_spheroid Class method used by GeometryField on initialization to retrieve the SPHEROID[..] parameters from the given WKT.
Class Method get​_units Return a tuple of (unit_value, unit_name) for the given WKT without using any of the database fields.
Method __str__ Return the string representation, a 'pretty' OGC WKT.
Property angular​_name Return the name of the angular units.
Property angular​_units Return the angular units.
Property datum Return the datum for this spatial reference.
Property ellipsoid Return a tuple of the ellipsoid parameters: (semimajor axis, semiminor axis, and inverse flattening).
Property geographic Is this Spatial Reference geographic?
Property linear​_name Return the linear units name.
Property linear​_units Return the linear units.
Property local Is this Spatial Reference local?
Property name Return the projection name.
Property projected Is this Spatial Reference projected?
Property spheroid Return the spheroid name for this spatial reference.
Property srs Return a GDAL SpatialReference object.
Property units Return a tuple of the units and the name.
@classmethod
def get_spheroid(cls, wkt, string=True):
Class method used by GeometryField on initialization to retrieve the SPHEROID[..] parameters from the given WKT.
@classmethod
def get_units(cls, wkt):
Return a tuple of (unit_value, unit_name) for the given WKT without using any of the database fields.
def __str__(self):
Return the string representation, a 'pretty' OGC WKT.
@property
angular_name =
Return the name of the angular units.
@property
angular_units =
Return the angular units.
@property
datum =
Return the datum for this spatial reference.
@property
ellipsoid =
Return a tuple of the ellipsoid parameters: (semimajor axis, semiminor axis, and inverse flattening).
@property
geographic =
Is this Spatial Reference geographic?
@property
linear_name =
Return the linear units name.
@property
linear_units =
Return the linear units.
@property
local =
Is this Spatial Reference local?
@property
name =
Return the projection name.
@property
projected =
Is this Spatial Reference projected?
@property
spheroid =
Return the spheroid name for this spatial reference.
@property
srs =
Return a GDAL SpatialReference object.
@property
units =
Return a tuple of the units and the name.