[GRASSLIST:294] Ghostscript errors and printing site icons

Hi, I tried to use the 'epsfile' ps.map command to specify the icon to
use for certain sites. However, it appears that the resulting postscript
file is illegal:

    Error: /undefined in
    Operand stack:
       language
    Execution stack:
       %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
    Dictionary stack:
       --dict:1058/1123(ro)(G)-- --dict:0/20(G)-- --dict:122/200(L)-- --dict:122/200(L)--
    Current allocation mode is local
    GNU Ghostscript 7.07: Unrecoverable error, exit code 1

(Same errors with gs 6.53.)

1) You think this could be a ps.map bug, or am I probably doing
   something wrong? The eps file appears to be legal (I created it with
   GIMP and it appears OK in ghostview).
2) If you are not using epsfile, how do you draw sites on your maps? The
   problem is that with 'icon' all sites are drawn with the same icon.
   Do you put each site type in a different map, although they may be
   related? Or do you use some type of raster?

On Thursday 05 June 2003 22:07, Antonios Christofides wrote:

Hi, I tried to use the 'epsfile' ps.map command to specify the icon to
use for certain sites. However, it appears that the resulting postscript
file is illegal:

    Error: /undefined in
    Operand stack:
       language
    Execution stack:
       %interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3
%oparray_pop --nostringval-- 1 3 %oparray_pop 1 3
%oparray_pop .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- Dictionary stack:
       --dict:1058/1123(ro)(G)-- --dict:0/20(G)-- --dict:122/200(L)--
--dict:122/200(L)-- Current allocation mode is local
    GNU Ghostscript 7.07: Unrecoverable error, exit code 1

(Same errors with gs 6.53.)

1) You think this could be a ps.map bug, or am I probably doing
   something wrong? The eps file appears to be legal (I created it with
   GIMP and it appears OK in ghostview).

Yes, may be bug in ps.map, but is your eps realy eps?
Does it start "%!PS-Adobe-2.0 EPSF-1.2" or similarly?
ps.map should report error if not, but better to check.
How did you save eps from GIMP, I see only "Save as" -> Postscript
(Postscript is not EPS).
GIMP is raster editor (or it was, AFAIK), I think that vectors
are better for icons (until you want to place photos in the map).
Try to make your icons in xfig.

2) If you are not using epsfile, how do you draw sites on your maps? The
   problem is that with 'icon' all sites are drawn with the same icon.
   Do you put each site type in a different map, although they may be
   related? Or do you use some type of raster?

Radim

PS: To draw points specified by SQL condition in ps.map/5.1:
vpoints mypoints
where name='Liptakov'
symbol basic/circle
size 20
fcolor red
end

Radim Blazek wrote:

On Thursday 05 June 2003 22:07, Antonios Christofides wrote:
> Hi, I tried to use the 'epsfile' ps.map command to specify the icon to
> use for certain sites. However, it appears that the resulting postscript
> file is illegal

Yes, may be bug in ps.map, but is your eps realy eps?
Does it start "%!PS-Adobe-2.0 EPSF-1.2" or similarly?

Thanks, Radim, that was the problem. When you select Postscript in GIMP,
it gives you a dialog with additional options, one of those being
whether you want EPS. If you select it, the resulting file does have a
correct header, but is otherwise identical to the postscript file
created if you don't select the EPS option. Probably a GIMP bug.

With xfig there is no problem.