MCPcopy
hub / github.com/django/django / __init__

Method __init__

django/contrib/gis/db/models/functions.py:583–591  ·  view source on GitHub ↗
(self, expression, x, y, z=0.0, **extra)

Source from the content-addressed store, hash-verified

581
582class Scale(SQLiteDecimalToFloatMixin, GeomOutputGeoFunc):
583 def __init__(self, expression, x, y, z=0.0, **extra):
584 expressions = [
585 expression,
586 self._handle_param(x, "x", NUMERIC_TYPES),
587 self._handle_param(y, "y", NUMERIC_TYPES),
588 ]
589 if z != 0.0:
590 expressions.append(self._handle_param(z, "z", NUMERIC_TYPES))
591 super().__init__(*expressions, **extra)
592
593
594class SnapToGrid(SQLiteDecimalToFloatMixin, GeomOutputGeoFunc):

Callers

nothing calls this directly

Calls 3

_handle_paramMethod · 0.80
appendMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected