[GRASS-dev] ps.output in grass-addons

Hi all,

Today I send to repository grass-addons a new program to draw maps in
postscript-3. The program is similar to ps.map but I prefer no overlap this
standard package until ps.output work fine (or never).

ps.output has many differences with ps.map

- the multilevel structure of the script, for example
font
  name Univers
  size 10 (or 3mm)
  color black
  extend 0.8 (condensed, or 1.2 to extended)
end

-all colors are RGB or named

- raster is expanded to
raster one raster, one group name or three raster (RGB)
    grey [y|N]. Output in shades of grey.
    maskcolor [color]. Color to be used for mask.
    maskcell [R (R)]. Raster mask and optionally a raster background.
    outline [line]. Specifications of outline.
    setcolor [cat color]. Overrides the color of cat
end

- now the legends (rlegend or vlegend) has a title, frame, ...
- rlegend permit reorder the data (need improved)
- vlegend work perfectly with multicolumn categories (I test more than 1000
categories and work :slight_smile:
- vector lines can draw as area (with vareas) of a width (positive or
negative). Interesting to coast lines, beach, ...
- five types of scalebar with subscale at zero left
- draw (including rose) in a specific command
- and more

ps.output is not full finished. For example TODO there is a error drawing the
geogrid in south hemisphere, new palette command dont work in gradient
subcommand, I want better vlegend options, helo is incomplete, etc but the
standard command work fine. However, it is necessary a testing for bugs or
mistakes. Please, send me any improvement or bugs that you find.

I attach a PDF example (from GRASS data 'nc_spm_08') with raster options,
outsize border and the text of the script to make it. (Sorry by the
aesthetic, but the colors are for testing :slight_smile:

  Jorge

To Hamish,

so instead of automatically removing it gives you the option?

Grid command has a round option equivalent to the number of trailing-zero to
cut, but don't cut if there is a minor number of zeros (the work as in
ps.map). For example,

major 50000 and round 3 -> draw a grid with numbers 4700 4750 4800 ...
but
major 50000 and round 7 -> draw 470 475 480 ...

ideas!

I'm blocked with the IHO text numbers (ps.output don't draw). In the
horizontal lines could be 4750/000 (metres below) or 4ºN/23.23' (minutes
below) but how can I draw in vertical lines? Any idea?

--
E. Jorge Tizado

(attachments)

MAP_raster.pdf (178 KB)