ps.map, Ghostscript and Designjet650c

kang at risca.rs.msu.edu kang at risca.rs.msu.edu
Tue Oct 17 08:00:00 EDT 1995



Hi,

You are lucky today.  I have the same problem with ps.map after specifying
a particular page definition file (with ps.select) under linux.  So, I 
digged into the ps.map source code and found what the problem is.  Under the
ps.map/ps.map/cmd directory, there is a file called "read_cfg.c" which reads
the configuration file specified with ps.select (look at your .grassrc file
after you run the ps.select).  The atof() function was used to convert string
to real number in the read_cfg.c file.  UNDER LINUX, you need to include the
stdlib.h (the ANSI C standard?) in the read_cfg.c and re-compile ps.map.

A while ago, someone also mentioned that you need to compile ps.map with
-fwritable-strings under gcc. (I think that this is true).

I also found out a quick fix with v.digit under LINUX.  It always freezed with
Wait. Replotting .....  Although different pepole have suggested different
solutions, such as using -lbsd etc.  The easiest fix is adding two s in the 
set_key.c file only.  In the set_key.c file, there are two lines looks like 
below (sorry, my linux box is in DOS right now):
struct termio &oldtermio;       -> change to struct termios &oldtermio;
struct termio &newtermio;       -> change to struct termios &newtermio;

Then, re-compile the v.digit and you are all set on the road.

One more fix and I will quit.  There is a nice program called d.vect.cat(s) in
the src.contrib/CAST directory.  It allows you to highlight one or several
user specified lines/polygons categories with one of the 16 availalbe vector 
colors.  At the near bottom of the plotCAT.c or plotCATS.c file, you can find 
a line looks like: Vect_get_area_points(P_map, a_index, Points); 
- right after Points = Vect_new_line_sruct();
It should be Vect_get_area_points(&P_map, ....);

Have a happy day!!!

Kang,






More information about the grass-user mailing list