[GRASS-dev] [GRASS GIS] #2948: ps.map output to stdout

#2948: ps.map output to stdout
-------------------------+---------------------------------
Reporter: harrikoo | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.4
Component: Ps.map | Version: svn-releasebranch70
Keywords: stdout | CPU: Unspecified
Platform: Unspecified |
-------------------------+---------------------------------
It would be nice to have `ps.map` optionally output to stdout. The
attached patch achieves this.

1. by changing the input and output argument handling to
`G_open_option_file`;

2. by moving the bounding box to the trailer of the produced postscript
file;

3. and additionally by closing the files using G_close_option_file. This
changes moves the closing of output file `PS.fp` from `ps_map()` to
`main()` where it is created.

4. As a result, this removes all seeks from the ps.map.

I'll attach the diff to r67951, but I have idea how to submit this.

Best,

Harri K.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2948&gt;
GRASS GIS <https://grass.osgeo.org>

#2948: ps.map output to stdout
--------------------------+---------------------------------
  Reporter: harrikoo | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: normal | Milestone: 7.0.4
Component: Ps.map | Version: svn-releasebranch70
Resolution: | Keywords: stdout
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------
Changes (by harrikoo):

* Attachment "psmapstdout.diff" added.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2948&gt;
GRASS GIS <https://grass.osgeo.org>