Skip to content

Commit

Permalink
v.vol.rst: Update parameter names in the example (#3073)
Browse files Browse the repository at this point in the history
Update code example according to the new parameters. Remove v.db.addcolumn because when the creation is left to v.to.db, no overwrite is needed. (From v.to.db doc: The column will be created in the table if it doesn't already exist.)
  • Loading branch information
lbartoletti committed Apr 27, 2024
1 parent 8cbe8fe commit 4ba6eae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vector/v.vol.rst/v.vol.rst.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,9 @@ <h2>EXAMPLES</h2>

### First part: generate synthetic 3D data (true 3D soil data preferred)
# generate random positions from elevation map (2D)
r.random elevation.10m vector_output=elevrand n=200
r.random elevation.10m vector=elevrand n=200 seed=42

# generate synthetic values
v.db.addcolumn elevrand col="x double precision, y double precision"
v.to.db elevrand option=coor col=x,y
v.db.select elevrand

Expand All @@ -202,7 +201,7 @@ <h2>EXAMPLES</h2>
v.db.select elevrand_3d

# optionally: check 3D points in Paraview
v.out.vtk input=elevrand_3d output=elevrand_3d.vtk type=point dp=2
v.out.vtk input=elevrand_3d output=elevrand_3d.vtk type=point precision=2
paraview --data=elevrand_3d.vtk

### Second part: 3D interpolation from 3D point data
Expand Down

0 comments on commit 4ba6eae

Please sign in to comment.