<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Andrea, </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
thank you very much for your support. Sorry, I'm new at this.<br>
I've tried to print the code that you sent me in the Python console but I get errors:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
<img style="max-width: 100%; width: 741.835px; height: 427px;" class="ContentPasted0 w-959 h-552" id="imageSelected0" width="741" height="427" size="52433" contenttype="image/png" data-outlook-trace="F:1|T:1" src="cid:785caf1b-9058-4177-9b65-b858278771ed"><br>
</div>
<div id="appendonsend"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I'm pretty sure I miss some basics here, could you please kindly explain the procedure?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Fabio</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
 </div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size: 11pt; color: rgb(0, 0, 0);"><b>Da:</b> QGIS-User <qgis-user-bounces@lists.osgeo.org> per conto di Andrea Giudiceandrea via QGIS-User <qgis-user@lists.osgeo.org><br>
<b>Inviato:</b> giovedì 29 giugno 2023 08:24<br>
<b>A:</b> qgis-user@lists.osgeo.org <qgis-user@lists.osgeo.org><br>
<b>Oggetto:</b> Re: [Qgis-user] Reclassify field values from txt rule file in QGIS</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">> fabio castelli fabio.castelli92 at outlook.it<br>
> Wed Jun 28 05:52:45 PDT 2023<br>
<br>
> I kindly ask for your support with an issue related to the reclassification of attribute tables with the v.reclass function.<br>
> Here's the link to the question posted on Stackexchenge: <a href="https://gis.stackexchange.com/questions/462318/reclassify-field-values-from-txt-rule-file-in-qgis" data-auth="NotApplicable">
https://gis.stackexchange.com/questions/462318/reclassify-field-values-from-txt-rule-file-in-qgis</a><br>
<br>
Hi Fabio,<br>
looking at your question posted on Stackexchenge, the error message <br>
("Either 'rules' or 'column' must be specified") is very clear and it is <br>
due to the fact the you have specified both the "rules" and "column" <br>
parameters instead of only one of them.<br>
<br>
Anyway, it looks like it is actually incorrectly impossible to specify <br>
only the "rules" parameter in the QGIS processing algorithm GUI for the <br>
v.reclass GRASS-GIS module without also specifying the "column" <br>
parameter: this is due to the fact that the "column" parameter is <br>
incorrectly flagged as mandatory instead of optional.<br>
<br>
You can workaround this issue editing the v.reclass.txt file in the <br>
folder with path [QGIS installation <br>
dir]\apps\qgis\python\plugins\grassprovider\description\ or [QGIS <br>
installation <br>
dir]\apps\qgis-ltr\python\plugins\grassprovider\description\ (provided <br>
you are using QGIS 3.32 or QGIS LTR 3.28 on Windows) and to change the <br>
the sixth line from:<br>
<br>
QgsProcessingParameterField|column|The name of the column whose values <br>
are to be used as new categories|None|input|-1|False|False<br>
<br>
to:<br>
<br>
QgsProcessingParameterField|column|The name of the column whose values <br>
are to be used as new categories|None|input|-1|False|True<br>
<br>
<br>
I also suggest you to read the v.reclass GRASS-GIS module manual <br>
available at <a href="https://grass.osgeo.org/grass82/manuals/v.reclass.html" data-auth="NotApplicable">
https://grass.osgeo.org/grass82/manuals/v.reclass.html</a> in <br>
order to better understand what the "rules" file must contains.<br>
<br>
<br>
Best regards.<br>
<br>
Andrea Giudiceandrea<br>
_______________________________________________<br>
QGIS-User mailing list<br>
QGIS-User@lists.osgeo.org<br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" data-auth="NotApplicable">
https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" data-auth="NotApplicable">
https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</div>
</span></font></div>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top: 1px solid #D3D4DE;">
<tbody>
<tr>
<td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img alt="" width="46" height="29" style="width: 46px; height: 29px;" src="https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">
Privo di virus.<a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color: #4453ea;">www.avast.com</a></td>
</tr>
</tbody>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
</body>
</html>