So I was playing with supervised classification with GRASS. The first issue that I ran into was right after the first two steps of classification (v.to.rast and i.gensig) which was:

unable to read signature file

Now that is an issue I've been searching the last 2 days. Is there a practical answer to that?


1 Answer 1


Well actually there is a very simple question. Now if you are new to GRASS, I'm guessing that you know something about classification algorithms and you have a bit of hands on experience with GIS technologies. Now the solution is pretty simple.

First look at your data, mainly the group that you want to classify. The easiest way is to create a group with a few bands (MORE THAN 2) using the i.group command like so:

i.group -r group='maingroup' subgroup='subgroup' i.group group='maingroup' subgroup='subgroup' input=band1,band2,band3,...


After that you are going to check your shapefile or your signatures (BEFORE USING i.gensig or i.gesigset) so you are sure you did not use "varchar" instead of "attr" for example.

Now if anything went according to plan and your data can be used, you should be able to continue with your supervised classification.

P.S this answer is based on that post(Empty signature file after i.gensig in GRASS) and MY personal issue

Not the answer you're looking for? Browse other questions tagged or ask your own question.