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

E. Jorge Tizado ejtizado at ono.com
Sun May 24 08:03:57 EDT 2009


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 :)
- 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 :)

	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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MAP_raster.pdf
Type: application/pdf
Size: 181940 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20090524/c1f478e8/MAP_raster-0001.pdf


More information about the grass-dev mailing list