class documentation

class MeasureBase:

Known subclasses: django.contrib.gis.measure.Area, django.contrib.gis.measure.Distance

View In Hierarchy

Undocumented

Class Method unit​_attname Retrieve the unit attribute name for the given unit string. For example, if the given unit string is 'metre', return 'm'. Raise an exception if an attribute cannot be found.
Constant ALIAS Undocumented
Constant LALIAS Undocumented
Constant STANDARD​_UNIT Undocumented
Constant UNITS Undocumented
Method __add__ Undocumented
Method __bool__ Undocumented
Method __eq__ Undocumented
Method __getattr__ Undocumented
Method __hash__ Undocumented
Method __iadd__ Undocumented
Method __imul__ Undocumented
Method __init__ Undocumented
Method __isub__ Undocumented
Method __itruediv__ Undocumented
Method __lt__ Undocumented
Method __mul__ Undocumented
Method __repr__ Undocumented
Method __rmul__ Undocumented
Method __str__ Undocumented
Method __sub__ Undocumented
Method __truediv__ Undocumented
Method ​_get​_standard Undocumented
Method ​_set​_standard Undocumented
Method default​_units Return the unit value and the default units specified from the given keyword arguments dictionary.
Class Variable standard Undocumented
Instance Variable ​_default​_unit Undocumented
@classmethod
def unit_attname(cls, unit_str):
Retrieve the unit attribute name for the given unit string. For example, if the given unit string is 'metre', return 'm'. Raise an exception if an attribute cannot be found.
ALIAS: dict =
LALIAS: dict =
STANDARD_UNIT =
UNITS: dict =
def __add__(self, other):

Undocumented

def __bool__(self):

Undocumented

def __eq__(self, other):

Undocumented

def __getattr__(self, name):

Undocumented

def __hash__(self):

Undocumented

def __iadd__(self, other):

Undocumented

def __imul__(self, other):

Undocumented

def __init__(self, default_unit=None, **kwargs):

Undocumented

def __isub__(self, other):

Undocumented

def __itruediv__(self, other):

Undocumented

def __lt__(self, other):

Undocumented

def __mul__(self, other):

Undocumented

def __repr__(self):

Undocumented

def __rmul__(self, other):

Undocumented

def __str__(self):

Undocumented

def __sub__(self, other):

Undocumented

def __truediv__(self, other):

Undocumented

def _get_standard(self):

Undocumented

def _set_standard(self, value):

Undocumented

def default_units(self, kwargs):
Return the unit value and the default units specified from the given keyword arguments dictionary.
standard =

Undocumented

_default_unit =

Undocumented