description.html 1.3 KB

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