# Hotfix #480
* (potentially) fixes a bug occuring on non multipolygon geometries processed in an api call * simplifies casting into multipolygon * simplifies casting into rlp srid (epsg:25832)
This commit is contained in:
@@ -117,8 +117,7 @@ class SimpleGeomForm(BaseForm):
|
||||
form_geom = form_geom.union(feature)
|
||||
|
||||
# Make sure to convert into a MultiPolygon. Relevant if a single Polygon is provided.
|
||||
if form_geom.geom_type != "MultiPolygon":
|
||||
form_geom = MultiPolygon(form_geom, srid=DEFAULT_SRID_RLP)
|
||||
form_geom = Geometry.cast_to_multipolygon(form_geom)
|
||||
|
||||
# Write unioned Multipolygon into cleaned data
|
||||
if self.cleaned_data is None:
|
||||
|
||||
Reference in New Issue
Block a user