GRASS Changes: 2nd Edition

Important changes in GRASS 5.3.x since 2nd Edition book submission

Open Source GIS: A GRASS GIS Approach
Markus Neteler, Helena Mitasova
2. Edition 2004, 424 pages
ISBN: 1-4020-8064-6
Kluwer Academic Publishers, Boston, Dordrecht, London
Book Series: The Kluwer international series in Engineering and Computer Science: Volume 773

The book “Open Source GIS:A GRASS GIS Approach” (ISBN: 1-4020-8064-6) is based on GRASS 5.3 from December 2003. To help the readers of the book with ongoing improvements and changes in GRASS we will maintain this web page for a while.

In general please refer to the NEWS file for a list of changes between GRASS 5.3/2003 and the current version.


List of changes to use the 2nd edition book with GRASS 6

Open Source GIS: A GRASS GIS Approach
Markus Neteler, Helena Mitasova
2. Edition 2004, 424 pages
ISBN: 1-4020-8064-6
Kluwer Academic Publishers/Springer, Boston, Dordrecht, London
Book Series: The Kluwer international series in Engineering and Computer Science: Volume 773
Online supplement

The basic changes are the integration of sites into the vector engine.

Quick reference: Chapters 1 – 2 – 345678910111213

 

Book Page(s) Module Update for GRASS 6
Chapter 1, 2
No relevant changes.
Chapter 3
p. 27 v.in.shape Use v.in.ogr instead
p. 27 Browser The browser is auto-detected now.
p. 27 Tab. 32 Additionally there are:
r3.* modules: raster volume processing
No longer supported are:
p.* modules (use ps.* instead or the QGIS print manager)
m.* modules (m.proj: cs2cs; m.in.e00: v.in.e00)
p. 29 tcltkgrass Use d.m instead
p. 29 g.list sites g.list vect
p. 30 s.info/d.sites s.info -> v.info
d.sites -> d.vect
This command becomes d.vect archsites col=white icon=basic/box
p. 33 g.mapsets g.mapsets now comes with a new, convenient graphical user interface
p. 33/42 g.projinfo g.proj -w
p. 46 EPSG/Startup screen Note: The GRASS startup screen provides support to auto-generate locations from EPSG code
p. 48 s.proj v.proj (-s is no longer needed)
p. 48 d.sites d.sites -> d.vect
Chapter 4
p. 56 g.region -p3 Adding ‘3’ also reports the 3rd dimension (former g3.region)
p. 57 g.region -p3 Adding ‘3’ also reports the 3rd dimension (former g3.region)
p. 57 g3.setregion/g3.createwind Retired, use g.* modules (g.region), 3D region definition is now fully integrated
p. 58 r.support It is not needed to run r.support
p. 58 g.projinfo g.proj -w
p. 66 i.rectify Operates like any other raster module now, no email is sent any more
p. 68 Vector model
  • In GRASS 6 following primitives are supported: point, line, centroid, area, face (3D area), kernel (3D centroid)
  • topology is always generated, the user no longer needs to run v.support (now: v.build)
p. 70/71 v.support v.build (note: no more need to run after vector operation)
p. 71 v.in.shape Use v.in.ogr instead
p. 71 m.in.e00 v.in.e00 (the manual attribute modifications are no longer needed as all attributes are imported)
p. 72 Ungenerate format (currently) no longer supported
p. 73 v.in.ascii Reads now from any directory as well as “standard in” (stdin)
p. 73 v.out.ascii Saves now to any directory as well as “standard out” (stdout)
p. 73 SDTS Use v.in.ogr to import SDTS
p. 74 v.in.dxf v.in.dwg (see license note). It also supports 3D data.
p. 74 v.transform The v.in.ascii step is no longer needed. The v.support call is no longer needed.
p. 77 v.in.gshhs Not yet ported to GRASS 6 (status 5/2005, volunteers?)
p. 78 v.out.shape Use v.out.ogr instead
p. 79 v.out.e00 E00 export is (currently) not supported (but could be derived from v.in.e00 script – status 5/2005, volunteers?)
p. 79 v.out.arc Ungenerate export is (currently) not supported
p. 79 v.in.ascii Reads now from any directory as well as “standard in” (stdin)
p. 79 v.out.sdts SDTS export is (currently) not supported
p. 80 Sites Sites are managed as vector points in GRASS 6
p. 81 s.in.mif Use v.in.ogr
p. 81 s.in.shape Use v.in.ogr
p. 81 s.in.dbf Use v.in.db
p. 81-83 s.in.ascii, s.out.ascii Use v.in.ascii, v.out.ascii
p. 83 s.to.rast v.to.rast
p. 86 slide.show.sh d.slide.show
Chapter 5
p. 86 r.colors Additional color tables are available with rules= parameter
p. 97 r.mask Please use r.mapcalc or r.reclass to create a binary ‘MASK’ map. Or use g.copy to rename an existing binary map to ‘MASK’.
p. 98 s.surf.rst v.surf.rst
p. 105-106 r.line r.to.vect
p. 105-106 r.poly r.to.vect
p. 108 r.to.sites The procedure needs to be slightly modified: Either use r.thin (thinning the line to single pixel width) to avoid parallel points being generated. Or, preferably, set the raster resolution to the map resolution before generating the points such as:
g.region rast=transport.misc -p

r.to.vect transport.misc out=transport_misc feature=point
p. 109 s.surf.rst merged into v.surf.rst
p. 118 r.poly r.to.vect
p. 118 v.support v.build (but no more need to run it here)
p. 120-121 d.sites d.vect
p. 125 r.hydro.CASC2D Not yet ported to GRASS 6 (status 5/2005, volunteers?)
p. 125 d.rast.labels Not yet ported to GRASS 6 (status 5/2005, volunteers?)
Chapter 6
p. 131 digitizer board (Currently) not supported
p. 132 r.line r.to.vect
p. 132 r.poly r.to.vect
p. 133 scale The scale is no longer actively used for calculation of snapping thresholds in vector maps. Thresholds are now usually given in map/projection units (and in v.digit optionally also in sceen pixels).
p. 133-138 v.digit This module was completely rewritten (with new user interface). Please refer to the manual page of the module.
p. 138 category labels Labels are now managed in the associated DB table (use db.execute)
p. 138 v.spag v.clean with break,snap tools (see manual page)
p. 139 v.prune v.clean with prune tool (see manual page)
p. 140 category labels Labels are now managed in the associated DB table (use db.execute)
p. 141 v.llabel/v.alabel v.category
p. 141 d.vect.area d.vect (-c to colorize polygons)
p. 141 d.vect.labels d.vect (attr parameter)
p. 142 slide.show.sh d.slide.show
p. 142 v.what use v.distance & d.what.vect
p. 142 v.area use v.to.db
p. 142-143 v.patch additionally there are v.overlay and v.select
p. 142 v.spag v.clean
p. 143 v.cutregion.sh v.in.region + v.overlay
p. 143-144 v.cutter v.overlay
p. 143-144 d.vect.labels d.vect (attr parameter)
p. 144 d.vect.area d.vect (-c to colorize polygons)
p. 144 r.line r.to.vect
p. 144 r.poly r.to.vect
p. 144 s.hull v.hull
p. 144 r.to.sites r.to.vect
p. 144-145 v.to.sites no longer needed
p. 145 v.area2line v.type
p. 145 v.llabel v.category
p. 146 Figure s.* integrated into v.*
p. 146 s.voronoi v.voronoi
p. 149-150 s.surf.idw v.surf.idw
p. 150 v.to.sites no longer needed
Chapter 7
p. 151 Site data Site data format was retired, point data are managed as vector point data
p. 151 site_lists directory This directory is not used for storing point data in GRASS6
p. 152 v.to.sites Digitized points remain in vector format, this command was retired
p. 152 r.to.sites Use r.to.vect
p. 152 r3.to.sites Not supported yet, but volume visualization is now supported directly by nviz
p. 153 r.random Option sites_out changed to vector_output
p. 153 s.sample Use v.sample
p. 153 v.to.sites Retired, no longer needed
p. 153 s.perturb Use v.perturb
p. 153 s.in.ascii Use v.in.ascii
p. 154 s.info Use v.info
p. 154 d.sites Use d.vect
p. 154 d.what.sites Use d.what.vect
p. 156 s.univar Use v.univar
p. 156 s.normal, s.qcount Use v.normal, v.qcount
p. 156 s.sv, m.svfit Use R or gstat, no longer supported
p. 157 s.to.rast Use v.to.rast
p. 157 s.to.rast3 Not supported yet
p. 158 s.voronoi Use v.voronoi, use output of v.random to create the input file
p. 158, 168-169 s.to.rast Use v.to.rast
p. 159-175 s.voronoi, s.surf.idw, s.surf.rst, s.vol.rst, s.volt.rst Use v.voronoi, v.surf.idw, v.surf.rst, v.vol.rst, v.volt.rst not yet available
p. 166 s.surf.rst.cv Use v.surf.rst
p. 167-171 data sets Need to be updated to GRASS6
p. 172-173 g3.setregion/g3.createwind/g3.list Retired, use g.* modules (g.region, g.list rast3d), 3D region definition is now fully integrated
p. 174 s.to.rast3 Not supported yet
p. 174,175 s.vol.idw Not supported yet
Chapter 8
p. 177 d.sites Use d.vect
p. 177 d.rast.labels Not supported, convert to vector and use d.vect
p. 177 d.vect.labels, d.site.labels Use d.vect, note that polygon labels are associated with centroids
p. 182 d.area Use d.vect
p. 185 nviz …. sites=archsites sites option replaced by vector, but the loading does not work from command line, so load from the GUI as Vector points
p. 185 Figure 8.3 nviz Vector Panel and Sites Panel Changed to Vector Lines and Vector Points Panel
p. 188 Panel – Sites replaced by Panel – Vector Points
p. 193 rgb2gifanim Use convert command
p. 195 Visualizing volumes Isosurfaces and crossections added, use Panel – Volume
p. 197 ps.map the definitions for vector maps are modified. There are also new features, please refer to the manual of ps.map for an example.
Chapter 9
p. 195 Visualizing volumes Isosurfaces and crossections added, use Panel – Volume
p. 207 i.in.erdas Use r.in.gdal
p. 209 i.out.erdas Use r.out.gdal
p. 214 dcorrelate.sh d.correlate
p. 220 i.rectify does no longer send an email, but behaves like any other raster module
p. 227 r.to.sites Use r.to.vect
p. 220 s.surf.rst Use v.surf.rst
p. 220 d.vect.labels Use d.vect
p. 241 Brovey Fusion now implemented as i.fusion.brovey
Chapter 10
p. 270 r.poly r.to.vect
p. 270 v.support no longer needed
Chapter 11
p. 274 Script programming It is recommended to use g.parser in scripts for easy user interface programming. Please see scripts shipped with GRASS 6 for examples.
p. 280 Automated usage A user can now run multiple GRASS 6 sessions in parallel (in different mapsets).
p. 281 .grassrc5 Renamed to .grassrc6
p. 283 C programming The source code directory structure was simplified.
p. 284 V2_, dig_ Retired/internal use only. The programmer will use Vect_*() functions only.
p. 284 G_sites Retired – migrated to Vect_*() functions.
p. 285 Variables All settings are defined in include/Make/* now.
Chapter 12
p. 293 s.surf.rst Use v.surf.rst
p. 302 wake_spft data set Needs update for GRASS6
p. 306-307 soils and land cover conversion to raster Multiple attributes are directly supported
p. 308 s.info, s.surf.rst Use v.info, v.surf.rst
Chapter 13
p. 328 gstat From gstat version 2.4.4 onwards the new GRASS 6 is supported
R-stats – TODO – (the GRASS 6 interface is currently under development, see GRASS Newsletter Vol.3)
Installation of new interface: see here