Markus Neteler c913a5a597 v.db.connect and ps.map manuals: fix typos; DPI cosmetics 6 gadi atpakaļ
..
decorations 2a84a0778f fixed eps north arrow images with eps2eps (and then line %.... in header has to be removed so that PIL can read it) 13 gadi atpakaļ
patterns 89db9a2bfe avoid pattern clipping (thanks for ideas Glynn, Jorge); 16 gadi atpakaļ
Makefile f2e18ece8e Treat destination directories as targets 15 gadi atpakaļ
README d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
border.h c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
box.c eca206bf3a stray whitespace (merge from devbr6) 12 gadi atpakaļ
catval.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
chk_scale.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 gadi atpakaļ
clr.h 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 gadi atpakaļ
colortable.h 603a460699 ps.map: add missing and new options, preserve backwards compatibility 12 gadi atpakaļ
comment.c e6d76942b6 ps.map: -b doesn't require 'output' to be defined 14 gadi atpakaļ
comment.h 94516acb96 Eliminate preprocessor abuse 17 gadi atpakaļ
decorate.h 13dc225615 * add scalebar unit labels 16 gadi atpakaļ
distance.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
distance.h 13dc225615 * add scalebar unit labels 16 gadi atpakaļ
do_geogrid.c e29f6716be ps.map: init PROJ transformation object 7 gadi atpakaļ
do_grid.c eca206bf3a stray whitespace (merge from devbr6) 12 gadi atpakaļ
do_header.c eca206bf3a stray whitespace (merge from devbr6) 12 gadi atpakaļ
do_labels.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
do_masking.c df4d81abd4 Move raster-specific functions from lib/gis to lib/raster: 15 gadi atpakaļ
do_plt.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
do_psfiles.c cef093c56b Don't include <grass/raster.h> where not needed 16 gadi atpakaļ
do_scalebar.c 603a460699 ps.map: add missing and new options, preserve backwards compatibility 12 gadi atpakaļ
do_vectors.c 67014631cb Added missing checks for Vect_open_* return value to avoid potential segmentation fault 11 gadi atpakaļ
eps.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
error.c c3ab662751 avoid 'format not a string literal and no format arguments' 11 gadi atpakaļ
fit_map.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 gadi atpakaļ
get_font.c cef093c56b Don't include <grass/raster.h> where not needed 16 gadi atpakaļ
get_scalebar.c 603a460699 ps.map: add missing and new options, preserve backwards compatibility 12 gadi atpakaļ
getgrid.c eca206bf3a stray whitespace (merge from devbr6) 12 gadi atpakaļ
gprims.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 gadi atpakaļ
group.h 94516acb96 Eliminate preprocessor abuse 17 gadi atpakaļ
header.h eb537ceb75 merge from devbr6: full RGB support for header text (https://trac.osgeo.org/grass/ticket/192); bugfix: text color survives %_ horizontal line draw 13 gadi atpakaļ
input.c cef093c56b Don't include <grass/raster.h> where not needed 16 gadi atpakaļ
key_data.c 67d406b433 mmetz: let the comment char have whitespace in front of it (https://trac.osgeo.org/grass/ticket/1453) 13 gadi atpakaļ
labels.h 373733635f bump max number of label files, GNAME_MAX 14 gadi atpakaļ
local_proto.h 8893d781fb diglib and ps.map: removing _STDIO_H preprocessor ifndefs and ifdef because they break compilation with clang (LLVM) on Mac OS X Mavericks‎ where _STDIO_H define is not defined (we suppose to have stdio always so there is no point in checking it and this define is not a part of standard library interface) 11 gadi atpakaļ
main.c e3ae81fff3 stray whitespace 12 gadi atpakaļ
makeprocs.c cef093c56b Don't include <grass/raster.h> where not needed 16 gadi atpakaļ
map_info.c feb1e2c7d6 allow spaces in EPS file pathname (merge from devbr6) 14 gadi atpakaļ
map_info.h 0a9a2373e5 RGB color support for mapinfo instruction (https://trac.osgeo.org/grass/ticket/192; merge from devbr6) 14 gadi atpakaļ
map_setup.c eca206bf3a stray whitespace (merge from devbr6) 12 gadi atpakaļ
mtextbox.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 gadi atpakaļ
outl_io.c e6d76942b6 ps.map: -b doesn't require 'output' to be defined 14 gadi atpakaļ
paper.h 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 gadi atpakaļ
parse_list.c c66ce150bb rasterlib: prototypes moved to rasterdefs.h 16 gadi atpakaļ
prolog.ps 96d2c02736 patch to help rendering text outlines (https://trac.osgeo.org/grass/ticket/155; thanks Bill; merge from relbr6) 17 gadi atpakaļ
ps.map.html c913a5a597 v.db.connect and ps.map manuals: fix typos; DPI cosmetics 6 gadi atpakaļ
ps_clrtbl.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
ps_colors.c e6d76942b6 ps.map: -b doesn't require 'output' to be defined 14 gadi atpakaļ
ps_fclrtbl.c 990a1a9170 better placement of horizontal legend tick labels and units text 11 gadi atpakaļ
ps_header.c 37c0e5bdfc Replace fseek/ftell with G_fseek/G_ftell 16 gadi atpakaļ
ps_info.h 41bbf84b97 full RGB support for raster clump outlining (https://trac.osgeo.org/grass/ticket/192, merge from devbr6) 13 gadi atpakaļ
ps_map.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
ps_map.png ef1f7715e8 ps.map: NC example with images and updated see also 9 gadi atpakaļ
ps_map_basic.png ef1f7715e8 ps.map: NC example with images and updated see also 9 gadi atpakaļ
ps_outline.c eca206bf3a stray whitespace (merge from devbr6) 12 gadi atpakaļ
ps_raster.c 1003287d82 ps.map: require input=file/- 14 gadi atpakaļ
ps_vareas.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
ps_vlegend.c c5651747d2 bugfix: crazy y values for vpoints in vector legend as vector.layer[i].offset was being used uninitialized (offset and coffset are only used for parallel road feature of vlines). another approach might be to init them to 0 in ps.map/vector.h. should be backported to all branches 9 gadi atpakaļ
ps_vlines.c 173798ed9c ps.map: use Vect_line_parallel2() 7 gadi atpakaļ
ps_vpoints.c 8075b57952 ps.map: fix uninitialized pointer found by coverity scan 10 gadi atpakaļ
r_border.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
r_cell.c 232260f74d fix various bugs introduced with https://trac.osgeo.org/grass/changeset/45580 including memory corruption, fix buffer overflow 12 gadi atpakaļ
r_colortable.c 8b940d44d4 spellging 12 gadi atpakaļ
r_group.c e6d76942b6 ps.map: -b doesn't require 'output' to be defined 14 gadi atpakaļ
r_header.c eca206bf3a stray whitespace (merge from devbr6) 12 gadi atpakaļ
r_info.c 1eee15557f ps.map: add missing headers 14 gadi atpakaļ
r_instructions.c 3258f030d3 ps.map: help for interactive CLI users 12 gadi atpakaļ
r_labels.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
r_paper.c e6d76942b6 ps.map: -b doesn't require 'output' to be defined 14 gadi atpakaļ
r_plt.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
r_rgb.c e6d76942b6 ps.map: -b doesn't require 'output' to be defined 14 gadi atpakaļ
r_text.c e6d76942b6 ps.map: -b doesn't require 'output' to be defined 14 gadi atpakaļ
r_vareas.c 8296d57314 vlib: remove Vect_get/set_fatal_error() - replaced by G_fatal_error() / G_warning() 13 gadi atpakaļ
r_vlegend.c 1eee15557f ps.map: add missing headers 14 gadi atpakaļ
r_vlines.c 8296d57314 vlib: remove Vect_get/set_fatal_error() - replaced by G_fatal_error() / G_warning() 13 gadi atpakaļ
r_vpoints.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
r_wind.c 6b9696bf3d update modules to https://trac.osgeo.org/grass/changeset/63823 10 gadi atpakaļ
read_cfg.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
scale.c e6d76942b6 ps.map: -b doesn't require 'output' to be defined 14 gadi atpakaļ
scan_gis.c cef093c56b Don't include <grass/raster.h> where not needed 16 gadi atpakaļ
scan_misc.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 gadi atpakaļ
scan_ref.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 gadi atpakaļ
session.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
show_scale.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
symbol.c e6d76942b6 ps.map: -b doesn't require 'output' to be defined 14 gadi atpakaļ
textbox.c c2eb3ff858 ps.map: major code clean up, part 1 12 gadi atpakaļ
vect.c 7c8a996021 rename nearest() fn to avoid namespace conflict with libm on AIX 7.1 12 gadi atpakaļ
vector.c cef093c56b Don't include <grass/raster.h> where not needed 16 gadi atpakaļ
vector.h 9a3b60abd1 Patch for spelling errors, prepared by sebastic (see https://trac.osgeo.org/grass/ticket/3163) 8 gadi atpakaļ
yesno.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 gadi atpakaļ

README

Feb 2000 added cwidth, offset, coffset, lpos for vectors by Radim Blazek

Jan 2000 added vector areas and legend label for vectors by Radim Blazek

1998
Patch, which enables user to choose one vector category
to print from a vector file (Janne Soimasuo, Finnland)
-> line_cat additions

files: do_vector.c, ps_vector.c
--------------------------
** added #include 7/98 Richard Nairn

--------------------------
PROBLEM DESCRIPTION:
Did not plot grid and vecors correctly in lat-lon
label location also didn't work in lat-lon
STATUS:
FIXED and coming out with the next update

PROBLEM DESCRIPTION:
The manual for ps.map says that fields width and hwidth
specify the width of the line in pixels, which is not true:
they were actually interpreted as width in user space PostScript
coordinates: 1/72 of inch. I made the width double, added width options
for outline and grid, and also now the width ni is isnterpreted as n inches.

STATUS:
FIXED and coming out with the next update

PROBLEM DESCRIPTION:
Also in file outl_io.c o_write_line() is an exact copy of the
write_ln() function in r.poly, which I fixed (GRASS930547) since
it was giving segmentation faults.

It looks like ps.map is doing exactly what r.poly does: creating
a vector file with boundaries of raster areas given a raster file.
Seems like a lot to do just to plot a map. If the user makes 10
different plots with the same raster file using outline, then
every time exact same vector file is created and deleted.

Instead I want to draw little line segments between every pair of
differing cells without worrying too much about topology.
This will have one drawback: each vector line will be drawn as many
little line segments, each with beginning and the end, instead of
starting the PostScript path at each node and drawing a continuous line
through all the points of vector line like it is done when drawing vector
maps.
Also I am going to add a line width parameter to outline command

STATUS:
FIXED and coming out with the next update

From anne@cast.uark.edu Mon Dec 20 16:40:49 1993

FIXED BUGS:

1. removed the G_strip(buf); instructions in function comment.c
to allow leading and trailing spaces in comment file.

2. removed statements:
if (fontsize < 10) fontsize = 10;
if (fontsize > 50) fontsize = 50;
in function do_labels.c so as not to restrict the choice of font size.

3. increased the maximum number of pixels allowed on a page in function
map_setup.c :
limit = 300000000L;
if the total number of pixels is larger than "limit" then ps.map
reduces it to limit
This change allows us to print layers at their actual resolution.
For example: an AVHRR layer at 151 cells per inch.

NOTE: we are thinking about assigning different upper limits to different
Postscript devices, as an additional parameter in the ps.devices files.

4. changed function plfile.c so that it accepts a line width of 0
NOTE: it should also be changed to allow decimal point values.

(I already changed it to decimal number, and made it accept 0 .Olga)

5. changed function ps_clrtbl.c so that category 0's label is read from the
cats file rather than replaced by "no data"

PROBLEM DESCRIPTION:
background none in labels did not work, the box was black
The gridnumber size was set to zero if it was >50;
Also I want to add linewidth for grid
STATUS:
FIXED and coming out with the next update


--------------------------------------------------------------------------
DESCRIPTION:

ps.map is called with the following arguments:

ps.map input=input_script [scale=xxxx] output=outputfile

The scale is optional. If no scale is given here and no scale request is
made in the input script, a scale equivalent to "1 panel" is used.

The program ps.select should be run to select a printer configuration file
prior to running ps.map. These files are located in the directory
$GISBASE/etc/paint/ps.devices. The name of the file is the argument to
ps.select. These files contain the following printer info:

level: 2
page width: 8.5
page height: 11.0
top margin: 0.5
bottom margin: 0.5
left margin: 0.25
right margin: 0.25
resolution: 75

If ps.select is not run, the default values are as shown above, where page
width and height are the paper dimensions (in inches) and the margins are
the unprintable edges of the page. The level is the PostScript level and
the resolution is the effective resolution in pixels per inch.

All of the p.map requests except for "colormode", "defpat" and "setpat"
have been implemented. Multiple panels are not supported at this time.
The icons used in the point and sites requests are created with the ps.icon
program (icons created with p.icon will not work).

The following p.map requests have been modified in ps.map:

colortable (has the following additional sub-requests)
where x y (distance in inches from left and top edges of page - optional)
width tablewidth (maximum width of colortable in inches - optional)
cols table_columns (optional - defaullt = 1)
font fontname (optional - default = Helvetica)
fontsize fontsize (optional - default = 10)
color textcolor (optional - default = black)
end (required)

comments (has the following additional sub-requests)
where x y (positions the comments x and y inches from the left and top
edges of the page - optonal - default is immediately below the last
item printed, starting at the left edge of the map)
font fontname (optional - default = Helvetica)
fontsize fontsize (optional - default = 10)
color textcolor (optional - default = black)
end (required)

grid (has the following additional sub-requests)
font fontname (optional - default = Helvetica)
fontsize fontsize (optional - default = 10)
end (required)

labels (has the following additional sub-requests)
font fontname (optional - default = Helvetica)
end (required)

scale (except multiple panels are not yet implemented)

sites (has the following additional sub-request)
font fontname (optional - default = Helvetica. The size of the
font is proportional to the size of the icon. The default icon
size is 1.0, which is equivalent to a fontsize of 10.)

vector (except the stye sub-request uses the first color for
all non-zero characters in the line pattern)


The following new script requests have been added:

greyrast (prints a raster map in shades of grey).

header
file filename (name of file containing header info - optional -
default is the standard header of pmap, except that it is
centered on the page)
font fontname (optional - default = Helvetica)
fontsize fontsize (optional - default = 10)
color textcolor (optional - default = black)
end (required)

maploc x y [width height] (positions the map x and y inches from
the left and top edges of the page. If the optional width and
height arguments are present, the map will be rescaled to fit.
If this request is not encountered, the map will be located
immediately below the header starting at the left margin.)

mapinfo
where x y (positions the information about the scale, the grid, and
the region x and y inches from the left and top edges of the page -
optonal - default is immediately below the map, starting at the
left edge of the map)
font fontname (optional - default = Helvetica)
fontsize fontsize (optional - default = 10)
color textcolor (optional - default = black)
end (required)

psfile filename (reads a file containing PostScript commands. This
request can appear up to 20 times in a ps.map script.)

vlegend
where x y (positions the vector legend x and y inches from the left
and top edges of the page - optonal - default is immediately below the
map_info, starting at the left edge of the map)
font fontname (optional - default = Helvetica)
fontsize fontsize (optional - default = 10)
end (required)

group (prints an imagery group comprising R,G,B channels.)

rgb (prints an RGB
image formed from three separate layers, as for d.rgb.)