v.split.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <h2>DESCRIPTION</h2>
  2. <em>v.split</em> splits vector lines into shorter segments using
  3. a maximal distance between nodes. The resulting length of all segments
  4. is expected to be equal and not higher than the given <b>length</b>
  5. parameter.
  6. <h2>EXAMPLES</h2>
  7. The examples are based on the North Carolina sample data location.
  8. <h3>Example 1: Inserting nodes to railroad map</h3>
  9. <div class="code"><pre>
  10. # extract data for this example
  11. v.extract railroads out=myrr cats=1
  12. # show line, category, direction (to find the beginning)
  13. d.vect myrr disp=shape,cat,dir
  14. # insert nodes at a distance not longer than 1000m
  15. v.split myrr out=mrr_split length=1000
  16. d.vect myrr_split disp=shape,topo
  17. </pre></div>
  18. Note: In case the data is not a polyline, build polylines in second step, eg.:
  19. <div class="code"><pre>
  20. # join segments into polyline
  21. v.build.polylines myrr out=myrr_poly
  22. v.category myrr_pol out=myrailroads option=add
  23. </pre></div>
  24. <h3>Example 2: Inserting vertices to railroad map</h3>
  25. Note: first run the two steps from example 1.
  26. <div class="code"><pre>
  27. # insert vertices at a distance not longer than 1000m
  28. v.split -n myrr out=myrr_split length=1000
  29. d.vect myrr_split disp=shape,topo
  30. </pre></div>
  31. <h2>SEE ALSO</h2>
  32. <em>
  33. <a href="v.edit.html">v.edit</a>,
  34. <a href="v.build.polylines.html">v.build.polylines</a>,
  35. <a href="v.to.points.html">v.to.points</a>,
  36. <a href="v.segment.html">v.segment</a>
  37. </em>
  38. <h2>AUTHOR</h2>
  39. Radim Blazek
  40. <p><i>Last changed: $Date$</i>