API - Geometry empty
* removes mapping of empty geometry to None due to general switch to empty geometry usage
This commit is contained in:
parent
2ef643f4e0
commit
79fd3ad29d
@ -136,8 +136,6 @@ class AbstractModelAPISerializer:
|
||||
geometry = geos.fromstr(geojson)
|
||||
if geometry.srid != DEFAULT_SRID_RLP:
|
||||
geometry.transform(DEFAULT_SRID_RLP)
|
||||
if geometry.empty:
|
||||
geometry = None
|
||||
return geometry
|
||||
|
||||
def _get_obj_from_db(self, id, user):
|
||||
|
Loading…
Reference in New Issue
Block a user