Another bug has been detected, which occurs on the geometry form's is_valid() call:
File"/konova/compensation/views/compensation/compensation.py",line165,inedit_viewifdata_form.is_valid()andgeom_form.is_valid():File"/konova/konova/forms/geometry_form.py",line86,inis_validg=gdal.OGRGeometry(feature_geom,srs=DEFAULT_SRID_RLP)File"/usr/local/lib/python3.7/site-packages/django/contrib/gis/gdal/geometries.py",line92,in__init__OGRGeomType(geom_input)File"/usr/local/lib/python3.7/site-packages/django/contrib/gis/gdal/geomtype.py",line43,in__init__raiseGDALException('Invalid OGR String Type "%s"'%type_input)ExceptionType:GDALExceptionat/compensation/431b4b74-0630-4f56-ad25-fd49863b021c/editExceptionValue:InvalidOGRStringType"null"
The provided geometry contains three features, where one feature does not provide any geometry data.
Fix
If a feature does not contain geometry, simply ignore it and continue iterating over all provided features.
# Status quo
Another bug has been detected, which occurs on the geometry form's is_valid() call:
```python
File "/konova/compensation/views/compensation/compensation.py", line 165, in edit_view
if data_form.is_valid() and geom_form.is_valid():
File "/konova/konova/forms/geometry_form.py", line 86, in is_valid
g = gdal.OGRGeometry(feature_geom, srs=DEFAULT_SRID_RLP)
File "/usr/local/lib/python3.7/site-packages/django/contrib/gis/gdal/geometries.py", line 92, in __init__
OGRGeomType(geom_input)
File "/usr/local/lib/python3.7/site-packages/django/contrib/gis/gdal/geomtype.py", line 43, in __init__
raise GDALException('Invalid OGR String Type "%s"' % type_input)
Exception Type: GDALException at /compensation/431b4b74-0630-4f56-ad25-fd49863b021c/edit
Exception Value: Invalid OGR String Type "null"
```
The provided geometry contains three features, where one feature does not provide any `geometry` data.
# Fix
If a feature does not contain geometry, simply ignore it and continue iterating over all provided features.
Status quo
Another bug has been detected, which occurs on the geometry form's is_valid() call:
The provided geometry contains three features, where one feature does not provide any
geometry
data.Fix
If a feature does not contain geometry, simply ignore it and continue iterating over all provided features.
Fixed and merged in #244