

def warp(self, format=None, srid=None, geom=None):
    'Returns a new RasterQuerySet with possibly warped/converted rasters.\n\n        Keyword args:\n        format -- raster file extension format as str\n        geom -- geometry for masking or spatial subsetting\n        srid -- spatial reference identifier as int for warping to\n        '
    clone = self._clone()
    for obj in clone:
        obj.convert(format, geom)
        if srid:
            f = obj.image.file
            if isinstance(f, MemFileIO):
                r = greenwich.Raster(f.name)
            else:
                r = obj.raster()
            memio = MemFileIO(delete=False)
            dswarp = r.warp(srid, memio)
            obj.image.file = memio
            dswarp.close()
            r.close()
    return clone

dataset/ETHPy150Open bkg/django-spillway/spillway/query.py RasterQuerySet.warp/original