def simplify(self, tolerance=0.0, srid=None, format=None, precision=8):
        # Transform first, then simplify.
        transform = self._transform(srid)
        simplify = self._simplify(transform, tolerance)
        if format:
            return self._as_format(simplify, format, precision)
        # TODO: EWKB bug is fixed in spatialite 4.2+ so this can be removed.
        if connection.ops.spatialite:
            # Spatialite returns additional precision when converting to wkt,
            # so avoid the call unless we are simplifying geometries.
            if not (tolerance or srid):
                return self
            simplify = 'AsEWKT(%s)' % simplify
        return self.extra(select={self.geo_field.name: simplify})
Returns a GeoQuerySet with simplified geometries serialized to
dataset/ETHPy150Open bkg/django-spillway/spillway/query.py/GeoQuerySet.simplify