

def _trans_scale(self, colname, deltax, deltay, xfactor, yfactor):
    if connection.ops.spatialite:
        sql = 'ScaleCoords(ShiftCoords(%s, %.12f, %.12f), %.12f, %.12f)'
    else:
        sql = 'ST_TransScale(%s, %.12f, %.12f, %.12f, %.12f)'
    return (sql % (colname, deltax, deltay, xfactor, yfactor))

dataset/ETHPy150Open bkg/django-spillway/spillway/query.py GeoQuerySet._trans_scale/original