Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spatial join summary processing alg report a TypeError (feedback) if no spatial index in batch process #39197

Closed
nicogodet opened this issue Oct 6, 2020 · 0 comments · Fixed by #39198
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@nicogodet
Copy link
Member

Describe the bug

Spatial join summary report a type Error if no spatial index in batch process but not in single process.

Batch process

Algorithme de traitement 1/1…
Démarrage de l'algorithme Joindre les attributs par localisation (résumé)…
Paramètres en entrée:
{'DISCARD_NONMATCHING': True,
'INPUT': 'Estimation_zones_protegees_2762776f_1221_4a37_ab7e_455e2c9d3d66',
'JOIN': 'Base_Entreprises_4877a359_5fbc_444a_b161_76a2ae26d31d',
'JOIN_FIELDS': ['EffSIRENE'],
'OUTPUT': <QgsProcessingOutputLayerDefinition {'sink':[...]/entzpp.shp, 'createOptions': {}}>,
'PREDICATE': [0, 1, 2, 3, 4, 5, 6],
'SUMMARIES': [5]}

Traceback (most recent call last):
File "D:/Qgis/apps/qgis/./python/plugins\processing\algs\qgis\SpatialJoinSummary.py", line 165, in processAlgorithm
feedback.reportError(self.tr("No spatial index exists for join layer, performance will be severely degraded"))
TypeError: reportError() missing 1 required positional argument: 'fatalError'

L'algorithme Joindre les attributs par localisation (résumé) a échoué…
Execution failed after 0.01 seconds
Batch execution completed in 0.03 seconds
1 l'exécution a échoué. Consultez le journal pour plus de détails.

Single process

Traitement de l'algorithme…
Démarrage de l'algorithme 'Joindre les attributs par localisation (résumé)'…
Paramètres en entrée:
{ 'DISCARD_NONMATCHING' : True, 'INPUT' : '[...]/Estimation_zones_protegees.shp', 'JOIN' : '[...]/Base_Entreprises.shp', 'JOIN_FIELDS' : ['EffSIRENE'], 'OUTPUT' : '[...]/entzpp.shp', 'PREDICATE' : [0,1,2,3,4,5,6], 'SUMMARIES' : [5] }

No spatial index exists for join layer, performance will be severely degraded
Exécution terminée en 0.29 secondes
Résultats:
{'OUTPUT': '[...]/entzpp.shp'}

Chargement des couches de résultat
Algorithme 'Joindre les attributs par localisation (résumé)' terminé

QGIS and OS versions
Qgis 3.14.16-2 Windows 10

Additional context

@nicogodet nicogodet added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Oct 6, 2020
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Oct 6, 2020
@gioman gioman added the Processing Relating to QGIS Processing framework or individual Processing algorithms label Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants