Bug report #7105

ftools execute functions only with the first datarecord from source in QGIS master

Added by Gerhard Spieles over 11 years ago. Updated over 7 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/QGIS
Affected QGIS version:master Regression?:
Operating System:win Easy fix?:
Pull Request or Patch supplied:No Resolution:worksforme
Crashes QGIS or corrupts data:No Copied to github as #:16182

Description

I tested some ftools functions (buffer, polygon to line e.g.)from menue item "Vektor" in QGIS 1.9.0 Alpha, 7dce617.
It seems, that ftools recognize only the first datarecord in the source file. The new built shp-file contais only one datarecord based on the first datarecord from source

The buffer function reports also a python error like:

Fehler bei der Ausführung von Python-Code:
Traceback (most recent call last):
  File "C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\fTools\\tools\\doGeoprocessing.py", line 84, in update
    self.attrib.addItem( unicode( changedField[i].name() ) )
TypeError: QgsFields.__getitem__(): argument 1 has unexpected type 'QgsField'
Python-Version:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
QGIS-Version:
1.9.0-Master Master, 7dce617 .......


Related issues

Duplicates QGIS Application - Bug report #7055: All plugins report python error in QGIS 1.9.0 Alpha, rev ... Closed 2013-01-27

History

#1 Updated by Salvatore Larosa over 11 years ago

  • Status changed from Open to Feedback

Hi,
the buffer tool works as expected here,
and that error will be fixed with this [1] pull request.

Could you provide more info and some sample data, please ?

[1] - https://github.com/qgis/Quantum-GIS/pull/419

#2 Updated by Giovanni Manghi over 11 years ago

here too it not possible to replicate this issue. It would be better to attach sample data. cheers!

#3 Updated by Gerhard Spieles over 11 years ago

Upate to rev. b35a456, ftools works ok with all datarecords.

Only buffer function brings the following error report, functionality is ok and buffer is generated:

Fehler bei der Ausführung von Python-Code:
Traceback (most recent call last):
File "C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\fTools\\tools\\doGeoprocessing.py", line 84, in update
self.attrib.addItem( unicode( changedField[i].name() ) )
TypeError: QgsFields.__getitem__(): argument 1 has unexpected type 'QgsField'
Python-Version:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
QGIS-Version:
1.9.0-Master Master, b35a456

#4 Updated by Giovanni Manghi over 11 years ago

  • Resolution set to worksforme
  • Status changed from Feedback to Closed

Only buffer function brings the following error report, functionality is ok and buffer is generated:

this has already been fixed, wait for a further master update. But anyway was another issue.

#5 Updated by Giovanni Manghi over 7 years ago

The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned.

Also available in: Atom PDF