Talk:Exercise 46
From AWF-Wiki
Raster clc missing
Unfortunately, there is only a vector clc in the provided GRASS data. - Levent 13:01, 15 January 2011 (CET)
- Update: g.list and g.mlist report that the map exists, yet it can't be displayed due to missing color data. I'll remove it, export it again with v.to.rast and write a colormap myself, which is a nice exercise anyway - perhaps could be integrated in the tutorial? - Levent 14:34, 15 January 2011 (CET)
- For the record: command needed to convert vector-clc to raster-clc is:
v.to.rast in=clc out=clc use=attr column=class
For the colors, write the following text-file:
1 230:000:077
2 255:255:168
3 230:230:077
4 128:255:000
5 077:255:000
6 000:166:000
7 128:242:230
Save as e.g. clc_colors. Open r.colors.table from the modules list, choose the new rastermap clc as input and browse for clc_colors. - Levent 15:02, 15 January 2011 (CET)
- For the record: command needed to convert vector-clc to raster-clc is: