Open ptormene opened 7 years ago
The error message is now much clearer:
Traceback (most recent call last):
File "/home/paolo/.qgis2/python/plugins/svir/dialogs/transformation_dialog.py", line 182, in update_default_fieldname
inverse, simulate=True)
File "/home/paolo/.qgis2/python/plugins/svir/calculations/process_layer.py", line 299, in transform_attribute
' its attributes.' % self.layer.providerType())
TypeError: Unable to edit features of this kind of layer (delimitedtext). Please consider saving the layer with an editable format before attempting to transform its attributes.
It would be even better to trap the exception and display the error message in the QGIS message bar,
For instance, if you try to transform an attribute of a csv-based layer, the plugin breaks with the following error:
The plugin should suggest to save the layer into a different format in which it is possible to edit fields, before attempting to perform the field transformation.