MCPcopy
hub / github.com/django/django / Scale

Class Scale

django/contrib/gis/db/models/functions.py:582–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580
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 1

test_scaleMethod · 0.90

Calls

no outgoing calls

Tested by 1

test_scaleMethod · 0.72