diff --git a/g3w-admin/editing/receivers.py b/g3w-admin/editing/receivers.py index 2c2a5075e..68b3fc9b2 100644 --- a/g3w-admin/editing/receivers.py +++ b/g3w-admin/editing/receivers.py @@ -289,6 +289,9 @@ def validate_constraint(**kwargs): geom_class = getattr(geos, geom_type) # For multi geometry type + if geom_type == "Polygon": + coords = coords[0] + if geom_type == "MultiPolygon": Polygon = getattr(geos, "Polygon") coords = [Polygon(p) for p in coords[0]]