Wed, Nov 29 2006
00:09:43
|
|
Request created by guest
|
|
Subject: gis.m PostScript text layer is not exported with export display to graphic
tool
Platform: GNU/Linux/x86
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 6.2.0
I displayed map and a PostScript text layer in gis.m, choosed "Export
display to graphics file" and got plain map w/o any PS text.
Steps to reproduce:
Open any location (i.e. Spearfish);
Add any raster/vector map;
Add PostScript text layer with any text;
Export result to ppm file.
In resulting file is only map and no PS text layer. |
|
Fri, Jan 19 2007
07:39:04
|
|
Status changed to stalled by mbarton
|
|
Fri, Jan 19 2007
07:39:04
|
|
Taken by mbarton
|
|
Fri, Jan 19 2007
07:39:04
|
|
Mail sent by mbarton
|
|
This is not a fix, because it isn't possible AFAIK. But it is an explanation
and a way to actually get the export you want.
TclTk only allows EPS export from a display canvas. "Normal" display export is
done by running the display commands, grabbing the *.ppm files created (i.e.,
the ones that show up on the display), and using gdal to translate them to
various output formats. The PS text layer is created in TclTk rather than in
GRASS. So it overlays the display *after* the GRASS display commands create
the *.ppm file. That is, this PS text never ends up in the *.ppm files because
it is not created by GRASS. So the normal display export will never get it to
translate from *.ppm to something else.
Nevertheless, if you use the print dialog, you can 'print' the display to EPS.
This will create an output file with *everything* you see in the display,
including PS text. In the print dialog, you can also 'print' to PDF if you
have ghostscript installed. This option uses ghostscript to do an EPS to PDF
translation. So the PDF file also will have the PS text, as well as anthing
else showing on the screen.
Michael |
|