Q1: I have a mif/mid layer imported into grass60 containing polygons. There is a table containig IDs for the polygons. And there is an MS Excel (xls) table containing IDs and RGB and CMYK values as the filling colour of those polygons. Mad enough I know, but is there a way to paint those polygons with the colour values described in the xls?
Q2: Is there a way to import text from a MIF file? I tried it, but I cannot see anything!
Q1: I have a mif/mid layer imported into grass60 containing
polygons. There is a table containig IDs for the polygons. And there
is an MS Excel (xls) table containing IDs and RGB and CMYK values as
the filling colour of those polygons. Mad enough I know, but is there
a way to paint those polygons with the colour values described in the
xls?
Copy RGB tripplets to your Grass vector's column of some name, use
d.vect rgb_column=string
Q2: Is there a way to import text from a MIF file? I tried it,
but I cannot see anything!
Don't know. As it seems more about the OGR driver than Grass, you could
find info on GDAL/OGR site/mailing list.
Maciek
--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich! http://katalog.panoramainternetu.pl/
I've done it and it works fine provided the MIF is not corrupted.
For color, simply put the RGB values into an attribute column/field you name
GRASSRGB (all caps) or specify with the rgb_column option in d.vect. Then
display with d.vect setting the -a flag.
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Q1: I have a mif/mid layer imported into grass60 containing
polygons. There is a table containig IDs for the polygons. And there
is an MS Excel (xls) table containing IDs and RGB and CMYK values as
the filling colour of those polygons. Mad enough I know, but is there
a way to paint those polygons with the colour values described in the
xls?
Copy RGB tripplets to your Grass vector's column of some name, use
d.vect rgb_column=string
Q2: Is there a way to import text from a MIF file? I tried it,
but I cannot see anything!
Don't know. As it seems more about the OGR driver than Grass, you could
find info on GDAL/OGR site/mailing list.
Maciek
--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko
najlepsze z nich! http://katalog.panoramainternetu.pl/
For color, simply put the RGB values into an attribute column/field
you name GRASSRGB (all caps) or specify with the rgb_column option in
d.vect. Then display with d.vect setting the -a flag.
Note d.vect now has a rgb_column= option so the RRR:GGG:BBB column
doesn't have to be called "GRASSRGB". More importantly you can now have
two RGB columns, eg for two different parameters at the same site.
"GRASSRGB" still the default of course.
Correct. I didn't explain this clearly enough. This makes it quite
versatile.
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
From: Hamish <hamish_nospam@yahoo.com>
Date: Thu, 13 Apr 2006 23:28:42 +1200
To: Michael Barton <michael.barton@asu.edu>
Cc: <werchowyna@epf.pl>, <orsteglasy@yahoo.com>, <grasslist@baylor.edu>
Subject: Re: [GRASSLIST:698] Re: MIF import and thematic maps
For color, simply put the RGB values into an attribute column/field
you name GRASSRGB (all caps) or specify with the rgb_column option in
d.vect. Then display with d.vect setting the -a flag.
Note d.vect now has a rgb_column= option so the RRR:GGG:BBB column
doesn't have to be called "GRASSRGB". More importantly you can now have
two RGB columns, eg for two different parameters at the same site.
"GRASSRGB" still the default of course.