Talk:Exercise 46

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "==Raster ''clc'' missing== Unfortunately, there is only a vector ''clc'' in the provided GRASS data. ~~~~")
 
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 
==Raster ''clc'' missing==
 
==Raster ''clc'' missing==
 
Unfortunately, there is only a vector ''clc'' in the provided GRASS data. [[User:Lburgr|- Levent]] 13:01, 15 January 2011 (CET)
 
Unfortunately, there is only a vector ''clc'' in the provided GRASS data. [[User:Lburgr|- 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? [[User:Lburgr|- Levent]] 14:34, 15 January 2011 (CET)
 +
:: For the record: command needed to convert vector-clc to raster-clc is: <br> {{typed|text=v.to.rast in=clc out=clc use=attr column=class}} <br> For the colors, write the following text-file: <br>1 230:000:077 <br> 2 255:255:168 <br> 3 230:230:077 <br> 4 128:255:000 <br> 5 077:255:000 <br> 6 000:166:000 <br> 7 128:242:230 <br> Save as e.g. ''clc_colors''. Open {{typed|text=r.colors.table}} from the modules list, choose the new rastermap ''clc'' as input and browse for ''clc_colors''. [[User:Lburgr|- Levent]] 15:02, 15 January 2011 (CET)

Latest revision as of 15:03, 15 January 2011

[edit] 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)
Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export