v.to.3d.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. Height of input 3D
  9. features can be optionally stored in <b>column</b>.
  10. <h2> NOTES</h2>
  11. When transforming 2D vector features to 3D based on attribute, all
  12. NULL values are silently converted to height 0.0.
  13. <p>
  14. Reverse transformation is possible for points and lines.
  15. In case of lines, the reverse transformation should be used
  16. only when all vertices of a line have the same z-coordinate
  17. (for example contours).
  18. <h2>EXAMPLES</h2>
  19. <h3>Transform 2D vector features to 3D</h3>
  20. <div class="code"><pre>
  21. # convert z-values from string to double
  22. v.db.addcolumn map=geodetic_pts columns="Z_VALUE_D double precision"
  23. v.db.update map=geodetic_pts column=Z_VALUE_D qcolumn=Z_VALUE
  24. v.db.select map=geodetic_pts columns=cat,Z_VALUE,Z_VALUE_D
  25. # convert 2D vector point map to 3D based on attribute
  26. v.to.3d input=geodetic_pts out=geodetic_pts_3d column=Z_VALUE_D
  27. </pre></div>
  28. <h3>Transform 3D vector features to 2D</h3>
  29. <div class="code"><pre>
  30. v.to.3d -rt input=elev_lid792_bepts output=elev_lid_2d
  31. </pre></div>
  32. <h2>SEE ALSO</h2>
  33. <em>
  34. <a href="v.transform.html">v.transform</a>,
  35. <a href="v.extrude.html">v.extrude</a>,
  36. <a href="v.drape.html">v.drape</a>
  37. </em>
  38. <h2>AUTHOR</h2>
  39. Martin Landa, Czech Technical University in Prague, Czech Republic
  40. <p>
  41. <i>Last changed: $Date$</i>