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

Method __init__

django/contrib/gis/db/models/functions.py:619–626  ·  view source on GitHub ↗
(self, expression, srid, **extra)

Source from the content-addressed store, hash-verified

617
618class Transform(GeomOutputGeoFunc):
619 def __init__(self, expression, srid, **extra):
620 expressions = [
621 expression,
622 self._handle_param(srid, "srid", int),
623 ]
624 if "output_field" not in extra:
625 extra["output_field"] = GeometryField(srid=srid)
626 super().__init__(*expressions, **extra)
627
628
629class Translate(Scale):

Callers

nothing calls this directly

Calls 3

GeometryFieldClass · 0.90
_handle_paramMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected