'Scales the geometry to a new size by multiplying the ordinates
with the given x,y,z scale factors.'

def scale(self, x, y, z=0.0, **kwargs):

    if connections[self.db].ops.spatialite:
        if (z != 0.0):
            raise NotImplementedError('SpatiaLite    does    not    support    3D    scaling.')
        s = {'procedure_fmt': '%(geo_col)s,%(x)s,%(y)s', 'procedure_args': {'x': x, 'y': y}, 'select_field': GeomField()}
    else:
        s = {'procedure_fmt': '%(geo_col)s,%(x)s,%(y)s,%(z)s', 'procedure_args': {'x': x, 'y': y, 'z': z}, 'select_field': GeomField()}
    return self._spatial_attribute('scale', s, **kwargs)
