cleangeometries & round_coordinates shouldn't return duplicate coordinates

This commit is contained in:
Laura Klünder 2019-12-21 12:17:16 +01:00
parent 484f725aa6
commit 4d113da653
4 changed files with 76 additions and 14 deletions

View file

@ -100,7 +100,7 @@ class GeometryField(models.TextField):
else:
logging.debug('Fixing rounded geometry failed, saving it to the database without rounding.')
return format_geojson(mapping(value), round=False) if as_json else value
return format_geojson(mapping(value), rounded=False) if as_json else value
def get_prep_value(self, value):
if value is None: