nextgis/nextgis_connect

internal error on layer_has_mixed_geoms or layer_has_bad_fields

simgislab opened this issue · 1 comments

Turn off Fix incorrect geometries, try to upload a layer
test.zip

Two problems:

  1. Stacktrace is produced, should be a proper message:

2019-02-22T10:58:54 0 Internal plugin error occurred!
File "qt_ngw_resource_model_job.py", line 111, in run
self._do()
File "ngw_resource_model_4qgis.py", line 842, in _do
self.ngw_group
File "ngw_resource_model_4qgis.py", line 180, in importQGISMapLayer
return [self.importQgsVectorLayer(qgs_map_layer, ngw_parent_resource)]
File "ngw_resource_model_4qgis.py", line 337, in importQgsVectorLayer
filepath, rename_fields_map = self.prepareImportFile(qgs_vector_layer)
File "ngw_resource_model_4qgis.py", line 392, in prepareImportFile
if layer_has_mixed_geoms or layer_has_bad_fields or (len(fids_with_notvalid_geom) > 0):

  1. attached geometry is correct, so the validation is not working?

Fixed in 0.12.0