

def test_simplify_geojson(self):
    sqs = self.qs.simplify(self.tol, srid=self.srid, format='geojson', precision=2)
    geom = geos.GEOSGeometry(sqs[0].geojson, self.srid)
    source = self.qs[0].geom
    self.assertNotEqual(geom, source)
    self.assertEqual(geom.srid, source.srid)
    self.assertLess(geom.num_coords, source.num_coords)

dataset/ETHPy150Open bkg/django-spillway/tests/test_query.py GeoQuerySetTestCase.test_simplify_geojson/original