API - Geometry empty

* removes mapping of empty geometry to None due to general switch to empty geometry usage
This commit is contained in:
mpeltriaux 2022-11-23 16:05:27 +01:00
parent 2ef643f4e0
commit 79fd3ad29d

View File

@ -136,8 +136,6 @@ class AbstractModelAPISerializer:
geometry = geos.fromstr(geojson) geometry = geos.fromstr(geojson)
if geometry.srid != DEFAULT_SRID_RLP: if geometry.srid != DEFAULT_SRID_RLP:
geometry.transform(DEFAULT_SRID_RLP) geometry.transform(DEFAULT_SRID_RLP)
if geometry.empty:
geometry = None
return geometry return geometry
def _get_obj_from_db(self, id, user): def _get_obj_from_db(self, id, user):