[GRASS5] d.m problem grass 6.0.0.0 beta1

Soeren Gebbert soeren at pool.math.TU-Berlin.DE
Sat Jan 15 11:58:19 EST 2005


Dear developers ive just compiled grass60 successfully but when i am using
d.m and want to visualize a raster map, i get this error:

can't read "opt(1,legend)": no such element in array
can't read "opt(1,legend)": no such element in array
    while executing
"if { $opt($id,legend) } {
        set cmd "d.rast.leg map=$opt($id,map)"
    }"
    (procedure "DmRaster::display" line 19)
    invoked from within
"DmRaster::display $node"
    ("raster" arm line 2)
    invoked from within
"switch $type {
        group {
            DmGroup::display $node
	}
	raster {
	    DmRaster::display $node
	}
	labels {
	    DmLabels::display $node
..."
    (procedure "Dm::display_node" line 6)
    invoked from within
"Dm::display_node $n"
    (procedure "DmGroup::display" line 11)
    invoked from within
"DmGroup::display $node"
    ("group" arm line 2)
    invoked from within
"switch $type {
        group {
            DmGroup::display $node
	}
	raster {
	    DmRaster::display $node
	}
	labels {
	    DmLabels::display $node
..."
    (procedure "Dm::display_node" line 6)
    invoked from within
"Dm::display_node $n"
    (procedure "DmGroup::display" line 11)
    invoked from within
"DmGroup::display "root""
    (procedure "Dm::display" line 6)
    invoked from within
"Dm::display"
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 $cmd"
    (procedure "Button::_release" line 18)
    invoked from within
"Button::_release .mainframe.topf.tb0.bbox1.b0"
    (command bound to event)


I didnt used the option "display with legend" and this error disapears if
i created a legend (d.m command button) "d.legend map=Geologie_final
color=black at=5,30,80,95 -c use=2,3,4,5,6,7,8,9", so what did i wrong?
Should i always create a legend to display a raster map?

Best regards
soeren




More information about the grass-dev mailing list