<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#333333">
    <p><font size="-1">Hi Stefan,</font></p>
    <p><font size="-1">Thanks for your reply. But I did not use
        cat=range option. I only do r.category map=mymap separator=":"
        rules=rulefic.txt</font></p>
    <p><font size="-1">with rulefic.txt like :<br>
      </font></p>
    <p><font size="-1">0:none<br>
        1:1 to 2<br>
        2:1 to 2<br>
        3:3 to 4<br>
        4:3 to 4<br>
        5:5 to 6<br>
      </font></p>
    <p><font size="-1">Is something missing ?<br>
        Thanks<br>
      </font></p>
    <div class="moz-signature">
      <style>
div#signature {font-size:10px;color:#666;margin:10px 0}
div.nom {font-weight:bold}
div.titre {}
div.geophom {font-size:11px;font-weight:bold;color:#A1CD1A;margin-top:10px}
div#voeux {font-size:10px;margin-top:10px}</style></div>
    <div class="moz-cite-prefix">Le 12/10/2018 à 15:02, Stefan
      Blumentrath a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:DB7PR02MB45854ED5D1DF37B1E427232D9EE20@DB7PR02MB4585.eurprd02.prod.outlook.com">
      <pre class="moz-quote-pre" wrap="">Hi Frank,

You need to specify the range option as range=0,8 (instead of range=0-8 as you did).

Cheers
Stefan

-----Original Message-----
From: grass-user <a class="moz-txt-link-rfc2396E" href="mailto:grass-user-bounces@lists.osgeo.org"><grass-user-bounces@lists.osgeo.org></a> On Behalf Of Frank David
Sent: fredag 12. oktober 2018 14:24
To: <a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
Subject: [GRASS-user] r.category

Hello grass users,

I have an error message in the console when I open some rasters with witch I've done a r.category.

"Failed to run command 'd.legend
raster=ZVT_nac_projet_hoht2__BDalti75_a1_8_sum@derval title=nacelle color=white range=0-8 at=5.0,50.0,6.9,9.9 thin=3'. Details:

ERROR: Option <range> must be provided in multiples of 2
     You provided 1 item(s): 0-8"

a r.describe display :

* 0.000000-0.031373 0.972549-1.003922 1.976471-2.007843 2.980392-3.011765
3.984314-4.015686 4.956863-4.988235 5.960784-5.992157 6.964706-6.996078
7.968627-8.000000

r.report display :

|       0-0.031373|from
to                                                   |
|0.972549-1.003922|from
to                                                   |
|1.976471-2.007843|from
to                                                   |
|2.980392-3.011765|from
to                                                   |
|3.984314-4.015686|from
to                                                   |
|4.988235-5.019608|from
to                                                   |
|5.992157-6.023529|from
to                                                   |
|6.996078-7.027451|from
to                                                   |
|       7.968627-8|from
to                                                   |
|                *|no data


I don't understand what the error message means (in red color in the
console) ?

Thank your for your help !

Frank
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
    </blockquote>
  </body>
</html>