https://issues.qgis.org/https://issues.qgis.org/favicon.ico2017-11-02T11:24:27ZQGIS Issue TrackingQGIS Application - Bug report #17370: point parameter bug in processing batch processhttps://issues.qgis.org/issues/17370?journal_id=840422017-11-02T11:24:27ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>Please add the script, the data and the error message.</p> QGIS Application - Bug report #17370: point parameter bug in processing batch processhttps://issues.qgis.org/issues/17370?journal_id=840552017-11-02T12:55:07ZPatrick Palmier
<ul><li><strong>File</strong> <a href="/attachments/download/11630/zonage_EMD2016_GT_centroids.shx">zonage_EMD2016_GT_centroids.shx</a> added</li><li><strong>File</strong> <a href="/attachments/download/11629/zonage_EMD2016_GT_centroids.shp">zonage_EMD2016_GT_centroids.shp</a> added</li><li><strong>File</strong> <a href="/attachments/download/11628/zonage_EMD2016_GT_centroids.qpj">zonage_EMD2016_GT_centroids.qpj</a> added</li><li><strong>File</strong> <a href="/attachments/download/11626/zonage_EMD2016_GT_centroids.prj">zonage_EMD2016_GT_centroids.prj</a> added</li><li><strong>File</strong> <a href="/attachments/download/11627/zonage_EMD2016_GT_centroids.dbf">zonage_EMD2016_GT_centroids.dbf</a> added</li><li><strong>File</strong> <a href="/attachments/download/11625/error_point_parameter_message.jpg">error_point_parameter_message.jpg</a> added</li><li><strong>File</strong> <a href="/attachments/download/11624/matrice.py">matrice.py</a><a href="/attachments/11624/matrice.py"><img alt="Magnifier" src="/images/magnifier.png" /></a> added</li></ul><p>Hello,</p>
<p>To reproduce the bug run the script matrice.py as batch process (in normal mode it works. It crashes only in batch process mode)</p>
<p>Fill with<br />noeuds: zonage_EMD2016_GT_centroids (attached)<br />numero: zone<br />pt_depart: click on the map near a point object<br />pt_arrivee: click on the map near a point object<br />nb_passagers: 1<br />jour: 1<br />heure: 8:00:00<br />depart: Yes</p>
<p>Then, run the script. It should crash and show a message similar to error_point_parameter_message.jpg</p>
<p>Thanks</p> QGIS Application - Bug report #17370: point parameter bug in processing batch processhttps://issues.qgis.org/issues/17370?journal_id=840562017-11-02T13:10:34ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Just tried on 2.18.14 on both Linux and Windows and (not in batch mode) running the tool (with the parameters as you described) does nothing: no output, no error message, nothing also in qgis log.</p> QGIS Application - Bug report #17370: point parameter bug in processing batch processhttps://issues.qgis.org/issues/17370?journal_id=840622017-11-02T13:41:12ZPatrick Palmier
<ul><li><strong>File</strong> <a href="/attachments/download/11631/script_parameters.jpg">script_parameters.jpg</a> added</li></ul><p>Hello,</p>
<p>I just installed the 2.18.14 version and I still have the same error<br />Please find the filled parameters screenshot<br />My version of the processing extension is 2.12.99</p>
<p>2017-11-02T14:34:50 1 Traceback (most recent call last):<br /> File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\processing\gui\BatchAlgorithmDialog.py", line 78, in accept<br /> if not self.mainWidget.setParamValue(param, widget, alg):<br /> File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\processing\gui\BatchPanel.py", line 320, in setParamValue<br /> return param.setValue(widget.text())<br /> AttributeError: 'PointSelectionPanel' object has no attribute 'text'</p> QGIS Application - Bug report #17370: point parameter bug in processing batch processhttps://issues.qgis.org/issues/17370?journal_id=840682017-11-02T13:53:16ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><blockquote>
<p>2017-11-02T14:34:50 1 Traceback (most recent call last):<br />File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\processing\gui\BatchAlgorithmDialog.py", line 78, in accept<br />if not self.mainWidget.setParamValue(param, widget, alg):<br />File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\processing\gui\BatchPanel.py", line 320, in setParamValue<br />return param.setValue(widget.text())<br />AttributeError: 'PointSelectionPanel' object has no attribute 'text'</p>
</blockquote>
<p>I see this, but this is anyway a different error from the one you posted as an image. And anyway not using the batch mode the scripts does nothing (again tested on linux and windows).</p> QGIS Application - Bug report #17370: point parameter bug in processing batch processhttps://issues.qgis.org/issues/17370?journal_id=840792017-11-02T14:51:22ZPatrick Palmier
<ul></ul><p>If you don't use it in batch mode but in normal mode and if you set a output text file (fichier_matrice), the script will write a semicolon delimited file with one row containing as the disk location you choose.</p>
<p>the zone number of the nearest point from the first click<br />the zone number of the nearest point from the second click<br />the number of passengers (form value nb_passengers)<br />the day (form value of jour)<br />the time in minutes (conversion in minutes of the from value heure)<br />d if depart is checked (a if not)</p>
<p>It's not awesome but yes, the script does something (It's just a small example to show the bug)</p> QGIS Application - Bug report #17370: point parameter bug in processing batch processhttps://issues.qgis.org/issues/17370?journal_id=840802017-11-02T14:53:08ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Open</i></li></ul><p>Patrick Palmier wrote:</p>
<blockquote>
<p>If you don't use it in batch mode but in normal mode and if you set a output text file (fichier_matrice), the script will write a semicolon delimited file with one row containing as the disk location you choose.</p>
</blockquote>
<p>oh I see... I was expecting something to be loaded in the project.</p> QGIS Application - Bug report #17370: point parameter bug in processing batch processhttps://issues.qgis.org/issues/17370?journal_id=899662018-06-01T05:00:39ZNyall Dawson
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>fixed/implemented</i></li></ul><p>Fixed in 3.0</p>