[GRASSLIST:1709] CE characters and vector colours

Hi again,

Last nihgt I had to plot some text labels on a map. The problem was that my labels contained also Central Europan characters which did not plot at all. I am sure there exists a solution to this problem.

Other question (probably alredy answered).

How would I colour a map of area vectors based on the values of the areas. I am searching a more automated approach than manually setting the R:G:B in a special file. Something like r.colors would be nice for depicting vector quantitative data. A fine command would also be to directly color a vector based on values from different columns in a database. The new d.vect in GRASS 5.7 has extensive capabilities, but I did not understand most of it. Now I am still at the following procedure:
1. v.reclass.pg in=old.map out=new.map
2. v.report > cat
3. edit the file cat so that only the cats remain
4. import into R and create a nice r:g:b sequence of colours
5. export the data frame into a legend file
6. d.vect.area newmap legend

How would I shorten the procedure?

Thanks for your patience, Miha Staut

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail

Miha STAUT wrote:

Last nihgt I had to plot some text labels on a map. The problem was that my
labels contained also Central Europan characters which did not plot at all.
I am sure there exists a solution to this problem.

Which program? ps.map? d.text? d.text.freetype? d.label?

ps.map only supports ISO Latin-1 (aka. ISO-8859-1). 5.0.0-pre3 and
earlier completely ignored the encoding so, if you have a printer (or
copy of Ghostscript) with a Latin-2 font[1], using -pre3 may work.

[1] and you can figure out how it's encoded; I wouldn't rely upon it
being ISO-8859-2; PostScript's default encoding isn't ISO-8859-1, but
something which it calls StandardEncoding[2].

[2] which is rather an odd name for an encoding which isn't remotely
standard; AFAICT, nothing other than PostScript uses this encoding.

If d.text.freetype was built to use iconv (look for HAVE_ICONV_H in
config.h), you can use any encoding which is supported by iconv
(subject to the font having the relevant glyphs, obviously), via the
charset=... option. If it wasn't built to use iconv, you're limited to
ISO-8859-1.

I don't think that the GRASS fonts (used by d.text, d.label etc)
support Latin-2. Actually, I don't think that they support Latin-1
either, just ASCII, Greek and Cyrillic.

--
Glynn Clements <glynn.clements@virgin.net>