[GRASS-user] d.vect not using RGB values in attribute table
Huidae Cho
grass4u at gmail.com
Mon May 22 13:16:43 EDT 2006
Interesting... Were these polygons displayed correctly before I added wcolumn=
and wscale=? Or is this the first time you use -a for this map? try to insert
the following line just above "} /* end if table_colors_flag */" in area.c:
fprintf(stderr, "colorstring:: area=%d cat=%d rgb=%d r=%d g=%d b=%d\n", area, cat, rgb, red, grn, blu);
and run the same command. If you don't mind, could you send me (without CC to
the list) a copy of the map?
Huidae Cho
On Mon, May 22, 2006 at 10:04:26AM -0700, Dylan Beaudette wrote:
> Ok, a bit more information.
>
> Rebuilt with today's CVS, and noticed that following:
>
> d.vect -a ca_statsgo 2>&1 | grep colorstring
> D3/3: area 508: colorstring: 28:58:205
> D3/3: area 2962: colorstring: 28:58:205
> D3/3: element 11933: colorstring: 179:113:29
> D3/3: element 12037: colorstring: 174:0:239
> D3/3: element 12038: colorstring: 174:0:239
> D3/3: element 12393: colorstring: 28:58:205
> D3/3: element 12772: colorstring: 179:113:29
> D3/3: element 12776: colorstring: 179:113:29
> D3/3: element 13616: colorstring: 89:107:16
> D3/3: element 13703: colorstring: 241:44:3
> D3/3: element 13777: colorstring: 179:113:29
> D3/3: element 13860: colorstring: 254:1:1
> D3/3: element 14253: colorstring: 202:158:185
> D3/3: element 14290: colorstring: 110:182:71
> D3/3: element 14369: colorstring: 254:1:1
> D3/3: element 14847: colorstring: 28:58:205
> D3/3: element 15466: colorstring: 254:1:1
> D3/3: element 15508: colorstring: 254:1:1
> D3/3: element 15640: colorstring: 181:166:34
>
>
> ... however there are hundreds of polygons in this map, and yet I only see
> about 20 lines matching 'colorstring' .. note that a VERY small number of
> polygons are being filled with a non-grey color- but I cannot detect any
> pattern.
>
> hereis a sample screen shot showing the results of the previous command:
>
> http://169.237.35.250/~dylan/temp/d.vect_probs.png
>
> vectors are labeled with their GRASSRGB attribute, note that only one of the
> vectors has a fill color that differs from the default.
>
> Dylan
>
>
>
> On Monday 22 May 2006 08:15, Huidae Cho wrote:
> > I added wcolumn= and wscale= options last week. Hmm.. -a flag works well
> > for me. Try the following:
> >
> > g.gisenv set=DEBUG=3
> > d.vect mapname -a 2>&1 | grep colorstring
> >
> > Do you see any message?
> >
> > Huidae Cho
> >
> > On Sun, May 21, 2006 at 01:22:18PM -0700, Dylan Beaudette wrote:
> > > last weeks CVS:
> > >
> > >
> > > using d.vect with the -a flag is not coloring areas based on colors
> > > stored in the attribute table.
> > >
> > > +------+-------+--------------+---------------+---------+----------+
> > >
> > > | cat | muid | suborder_pct | soil_suborder | rgb | GRASSRGB |
> > >
> > > +------+-------+--------------+---------------+---------+----------+
> > >
> > > | 2735 | CA007 | 15 | orthents | 254:1:1 | 254:1:1 |
> > >
> > > +------+-------+--------------+---------------+---------+----------+
> > >
> > > tried using both an attribute named GRASSRGB, and specifying the column
> > > with the rgb_column=GRASSRGB flag
> > >
> > > anyone else noticing this odd behavior?
> > >
> > > Thanks!
> > >
> > >
> > > --
> > > Dylan Beaudette
> > > Soils and Biogeochemistry Graduate Group
> > > University of California at Davis
> > > 530.754.7341
> > >
> > > _______________________________________________
> > > grassuser mailing list
> > > grassuser at grass.itc.it
> > > http://grass.itc.it/mailman/listinfo/grassuser
>
> --
> Dylan Beaudette
> Soils and Biogeochemistry Graduate Group
> University of California at Davis
> 530.754.7341
More information about the grass-user
mailing list