README 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. Feb 2000 added cwidth, offset, coffset, lpos for vectors by Radim Blazek
  2. Jan 2000 added vector areas and legend label for vectors by Radim Blazek
  3. 1998
  4. Patch, which enables user to choose one vector category
  5. to print from a vector file (Janne Soimasuo, Finnland)
  6. -> line_cat additions
  7. files: do_vector.c, ps_vector.c
  8. --------------------------
  9. ** added #include <stdlib.h> 7/98 Richard Nairn
  10. --------------------------
  11. PROBLEM DESCRIPTION:
  12. Did not plot grid and vecors correctly in lat-lon
  13. label location also didn't work in lat-lon
  14. STATUS:
  15. FIXED and coming out with the next update
  16. PROBLEM DESCRIPTION:
  17. The manual for ps.map says that fields width and hwidth
  18. specify the width of the line in pixels, which is not true:
  19. they were actually interpreted as width in user space PostScript
  20. coordinates: 1/72 of inch. I made the width double, added width options
  21. for outline and grid, and also now the width ni is isnterpreted as n inches.
  22. STATUS:
  23. FIXED and coming out with the next update
  24. PROBLEM DESCRIPTION:
  25. Also in file outl_io.c o_write_line() is an exact copy of the
  26. write_ln() function in r.poly, which I fixed (GRASS930547) since
  27. it was giving segmentation faults.
  28. It looks like ps.map is doing exactly what r.poly does: creating
  29. a vector file with boundaries of raster areas given a raster file.
  30. Seems like a lot to do just to plot a map. If the user makes 10
  31. different plots with the same raster file using outline, then
  32. every time exact same vector file is created and deleted.
  33. Instead I want to draw little line segments between every pair of
  34. differing cells without worrying too much about topology.
  35. This will have one drawback: each vector line will be drawn as many
  36. little line segments, each with beginning and the end, instead of
  37. starting the PostScript path at each node and drawing a continuous line
  38. through all the points of vector line like it is done when drawing vector
  39. maps.
  40. Also I am going to add a line width parameter to outline command
  41. STATUS:
  42. FIXED and coming out with the next update
  43. From anne@cast.uark.edu Mon Dec 20 16:40:49 1993
  44. FIXED BUGS:
  45. 1. removed the G_strip(buf); instructions in function comment.c
  46. to allow leading and trailing spaces in comment file.
  47. 2. removed statements:
  48. if (fontsize < 10) fontsize = 10;
  49. if (fontsize > 50) fontsize = 50;
  50. in function do_labels.c so as not to restrict the choice of font size.
  51. 3. increased the maximum number of pixels allowed on a page in function
  52. map_setup.c :
  53. limit = 300000000L;
  54. if the total number of pixels is larger than "limit" then ps.map
  55. reduces it to limit
  56. This change allows us to print layers at their actual resolution.
  57. For example: an AVHRR layer at 151 cells per inch.
  58. NOTE: we are thinking about assigning different upper limits to different
  59. Postscript devices, as an additional parameter in the ps.devices files.
  60. 4. changed function plfile.c so that it accepts a line width of 0
  61. NOTE: it should also be changed to allow decimal point values.
  62. (I already changed it to decimal number, and made it accept 0 .Olga)
  63. 5. changed function ps_clrtbl.c so that category 0's label is read from the
  64. cats file rather than replaced by "no data"
  65. PROBLEM DESCRIPTION:
  66. background none in labels did not work, the box was black
  67. The gridnumber size was set to zero if it was >50;
  68. Also I want to add linewidth for grid
  69. STATUS:
  70. FIXED and coming out with the next update
  71. --------------------------------------------------------------------------
  72. DESCRIPTION:
  73. ps.map is called with the following arguments:
  74. ps.map input=input_script [scale=xxxx] output=outputfile
  75. The scale is optional. If no scale is given here and no scale request is
  76. made in the input script, a scale equivalent to "1 panel" is used.
  77. The program ps.select should be run to select a printer configuration file
  78. prior to running ps.map. These files are located in the directory
  79. $GISBASE/etc/paint/ps.devices. The name of the file is the argument to
  80. ps.select. These files contain the following printer info:
  81. level: 2
  82. page width: 8.5
  83. page height: 11.0
  84. top margin: 0.5
  85. bottom margin: 0.5
  86. left margin: 0.25
  87. right margin: 0.25
  88. resolution: 75
  89. If ps.select is not run, the default values are as shown above, where page
  90. width and height are the paper dimensions (in inches) and the margins are
  91. the unprintable edges of the page. The level is the PostScript level and
  92. the resolution is the effective resolution in pixels per inch.
  93. All of the p.map requests except for "colormode", "defpat" and "setpat"
  94. have been implemented. Multiple panels are not supported at this time.
  95. The icons used in the point and sites requests are created with the ps.icon
  96. program (icons created with p.icon will not work).
  97. The following p.map requests have been modified in ps.map:
  98. colortable (has the following additional sub-requests)
  99. where x y (distance in inches from left and top edges of page - optional)
  100. width tablewidth (maximum width of colortable in inches - optional)
  101. cols table_columns (optional - defaullt = 1)
  102. font fontname (optional - default = Helvetica)
  103. fontsize fontsize (optional - default = 10)
  104. color textcolor (optional - default = black)
  105. end (required)
  106. comments (has the following additional sub-requests)
  107. where x y (positons the comments x and y inches from the left and top
  108. edges of the page - optonal - default is immediately below the last
  109. item printed, starting at the left edge of the map)
  110. font fontname (optional - default = Helvetica)
  111. fontsize fontsize (optional - default = 10)
  112. color textcolor (optional - default = black)
  113. end (required)
  114. grid (has the following additional sub-requests)
  115. font fontname (optional - default = Helvetica)
  116. fontsize fontsize (optional - default = 10)
  117. end (required)
  118. labels (has the following additional sub-requests)
  119. font fontname (optional - default = Helvetica)
  120. end (required)
  121. scale (except multiple panels are not yet implemented)
  122. sites (has the following additional sub-request)
  123. font fontname (optional - default = Helvetica. The size of the
  124. font is proportional to the size of the icon. The default icon
  125. size is 1.0, which is equivalent to a fontsize of 10.)
  126. vector (except the stye sub-request uses the first color for
  127. all non-zero characters in the line pattern)
  128. The following new script requests have been added:
  129. greyrast (prints a raster map in shades of grey).
  130. header
  131. file filename (name of file containing header info - optional -
  132. default is the standard header of pmap, except that it is
  133. centered on the page)
  134. font fontname (optional - default = Helvetica)
  135. fontsize fontsize (optional - default = 10)
  136. color textcolor (optional - default = black)
  137. end (required)
  138. maploc x y [width height] (positions the map x and y inches from
  139. the left and top edges of the page. If the optional width and
  140. height arguments are present, the map will be rescaled to fit.
  141. If this request is not encountered, the map will be located
  142. immediately below the header starting at the left margin.)
  143. mapinfo
  144. where x y (positons the information about the scale, the grid, and
  145. the region x and y inches from the left and top edges of the page -
  146. optonal - default is immediately below the map, starting at the
  147. left edge of the map)
  148. font fontname (optional - default = Helvetica)
  149. fontsize fontsize (optional - default = 10)
  150. color textcolor (optional - default = black)
  151. end (required)
  152. psfile filename (reads a file containing PostScript commands. This
  153. request can appear up to 20 times in a ps.map script.)
  154. vlegend
  155. where x y (positons the vector legend x and y inches from the left
  156. and top edges of the page - optonal - default is immediately below the
  157. map_info, starting at the left edge of the map)
  158. font fontname (optional - default = Helvetica)
  159. fontsize fontsize (optional - default = 10)
  160. end (required)
  161. group <group> (prints an imagery group comprising R,G,B channels.)
  162. rgb <red[@mapset]> <green[@mapset]> <blue[@mapset]> (prints an RGB
  163. image formed from three separate layers, as for d.rgb.)