description.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <h2>DESCRIPTION</h2>
  2. The <em>v.to.3d</em> module is used to transform 2D vector features
  3. to 3D. Height (z-coordinate) of 3D vector features can be specified
  4. by <b>height</b> parameter as fixed value or by <b>column</b>
  5. parameter.
  6. <p>
  7. Flag <b>-r</b> enables to perform reverse transformation, i.e.,
  8. transform 3D vector to 2D by omitting z-coordinate.
  9. <h2> NOTES</h2>
  10. When transforming 2D vector features to 3D based on attribute, all
  11. NULL values are silently converted to height 0.0.
  12. <h2>EXAMPLES</h2>
  13. <h3>Transform 2D vector features to 3D</h3>
  14. <div class="code"><pre>
  15. # convert z-values from string to double
  16. v.db.addcolumn map=geodetic_pts columns="Z_VALUE_D double precision"
  17. v.db.update map=geodetic_pts column=Z_VALUE_D qcolumn=Z_VALUE
  18. v.db.select map=geodetic_pts columns=cat,Z_VALUE,Z_VALUE_
  19. # convert 2D vector point map to 3D based on attribute
  20. v.to.3d input=geodetic_pts out=geodetic_pts_3d column=Z_VALUE_D
  21. </pre></div>
  22. <h3>Transform 3D vector features to 2D</h3>
  23. <div class="code"><pre>
  24. v.to.3d -rt input=elev_lid792_bepts output=elev_lid_2d
  25. </pre></div>
  26. <h2>SEE ALSO</h2>
  27. <em>
  28. <a href="v.transform.html">v.transform</a>,
  29. <a href="v.extrude.html">v.extrude</a>,
  30. <a href="v.drape.html">v.drape</a>
  31. </em>
  32. <h2>AUTHORS</h2>
  33. Martin Landa, CTU in Prague, Czech Republic
  34. <p>
  35. <i>Last changed: $Date$</i>