Bug report #8089

Errors with polygonize and rasterize

Added by Theron Morgan-Brown about 11 years ago. Updated about 11 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:GDAL Tools
Affected QGIS version:master Regression?:No
Operating System:Ubuntu Linux Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:16926

Description

Updated this morning and changeset does indeed fix most errors in GdalTools and Ftools. However, errors remains in polygonize and rasterize as follows.

An error has occurred while executing Python code:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/GdalTools/tools/widgetPluginBase.py", line 53, in someValueChanged
    self.emit(SIGNAL("valuesChanged(PyQt_PyObject)"), self.getArguments())
  File "/usr/share/qgis/python/plugins/GdalTools/tools/doPolygonize.py", line 95, in getArguments
    arguments = QStringList()
NameError: global name 'QStringList' is not defined

Python version:
2.7.3 (default, Aug  1 2012, 05:25:23) 
[GCC 4.6.3]
An error has occured while executing Python code:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/GdalTools/tools/doPolygonize.py", line 77, in fillOutputFileEdit
    if outputFile.isEmpty():
AttributeError: 'unicode' object has no attribute 'isEmpty'

Python version:
2.7.3 (default, Aug  1 2012, 05:25:23) 
[GCC 4.6.3]

For Rasterize

An error has occured while executing Python code:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/GdalTools/tools/doRasterize.py", line 78, in fillFieldsCombo
    self.loadFields( self.getInputFileName() )
  File "/usr/share/qgis/python/plugins/GdalTools/tools/doRasterize.py", line 148, in loadFields
    if vectorFile.isEmpty():
AttributeError: 'unicode' object has no attribute 'isEmpty'

Python version:
2.7.3 (default, Aug  1 2012, 05:25:23) 
[GCC 4.6.3]
An error has occured while executing Python code:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/GdalTools/tools/doRasterize.py", line 103, in fillOutputFileEdit
    if outputFile.isEmpty():
AttributeError: 'unicode' object has no attribute 'isEmpty'

Python version:
2.7.3 (default, Aug  1 2012, 05:25:23) 
[GCC 4.6.3]

History

#1 Updated by Matthias Kuhn about 11 years ago

  • Status changed from Open to Closed

Thank you for reporting.
These issues should be resolved, but please keep us posted on further errors

Also available in: Atom PDF