[GRASSLIST:689] MIF import and thematic maps

Hi there,

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!

Thanks!
Örs

Kontakt:
Téglásy Örs
orsteglasy@yahoo.com
http://ludens.elte.hu/~tors
+36 (20) 385-5928


Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice.

On Wed, 12 Apr 2006 11:28:36 -0700 (PDT)
"T_gl_sy" "_rs" <orsteglasy@yahoo.com> wrote:

Hi there,
   
  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/

Import MIF/MID using v.in.ogr.

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

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Maciek Sieczka <werchowyna@epf.pl>
Date: Wed, 12 Apr 2006 21:10:53 +0200
To: T_gl_sy_rs <orsteglasy@yahoo.com>
Cc: <grasslist@baylor.edu>
Subject: [GRASSLIST:691] Re: MIF import and thematic maps

On Wed, 12 Apr 2006 11:28:36 -0700 (PDT)
"T_gl_sy" "_rs" <orsteglasy@yahoo.com> wrote:

Hi there,
   
  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.

Hamish

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

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

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.

Hamish