[GRASS-user] d.vect not using RGB values in attribute table

Huidae Cho grass4u at gmail.com
Mon May 22 14:47:43 EDT 2006


Dylan,

Here is a screenshot of "d.vect -a mapname type=area".  I have no idea what's
going on in your grass.

http://geni.ath.cx/tmp/screenshot.png

Does anyone have any idea?

Huidae Cho

On Mon, May 22, 2006 at 11:38:50AM -0700, Dylan Beaudette wrote:
> On Monday 22 May 2006 10:16, Huidae Cho wrote:
> > 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
> >
> 
> Huidae,
> 
> thanks for the quick reply.
> 
> This is the first time that I have tried using the -a flag on this map.
> 
> here is a link to a shapefile of this map:
> http://169.237.35.250/~dylan/temp/ca_suborder.tar.gz
> 
> I will try the source code modification a little later today.
> 
> Cheers,
> 
> Dylan
> 
> 
> > 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
> 
> -- 
> Dylan Beaudette
> Soils and Biogeochemistry Graduate Group
> University of California at Davis
> 530.754.7341




More information about the grass-user mailing list