v.patch.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <h2>DESCRIPTION</h2>
  2. <em>v.patch</em> allows the user to combine any number of
  3. vector maps together to create one composite vector
  4. map. If the table structures are identical, attributes are
  5. transferred to the new table.
  6. <h2>NOTES</h2>
  7. Any vectors that are duplicated among the maps being
  8. patched together (e.g., border lines) will have to be
  9. edited or removed after <em>v.patch</em> is run. Such
  10. editing can be done automatically using
  11. <em><a HREF="v.clean.html">v.clean</a></em>.
  12. <p>
  13. Lines may need to be
  14. snapped with <em><a HREF="v.clean.html">v.clean</a>
  15. tool=snap,break,rmdupl</em>.
  16. <p>
  17. Boundaries may need to be cleaned with
  18. <em><a HREF="v.clean.html">v.clean</a> tool=break,rmdupl,rmsa</em>
  19. repeatedly until the <em>rmsa</em> tool (Remove small angles at nodes)
  20. no longer modifies any boundaries. If vector topology is still not
  21. clean, boundaries may also need to be snapped with
  22. <em><a HREF="v.clean.html">v.clean</a> tool=snap,break,rmdupl</em>.
  23. <p>
  24. When using the <em>-a</em> flag, the user has to make sure that the
  25. features in the different maps added to the output map do not have
  26. overlapping category numbers, unless identical category numbers
  27. reflect identical attributes, otherwise the attributes of the added
  28. maps are lost. To avoid this, the user can use <em>v.category
  29. option=sum</em> to change category values of some of the maps before
  30. patching.
  31. <h2>EXAMPLES</h2>
  32. Patch together two maps with mixed feature types:
  33. <div class="code"><pre>
  34. v.patch input=geology,streams out=geol_streams
  35. </pre></div>
  36. <BR>
  37. Append one map to another:
  38. <div class="code"><pre>
  39. g.copy vect=roads,transport
  40. v.patch -a input=railroads output=transport --overwrite
  41. </pre></div>
  42. <h2>SEE ALSO</h2>
  43. <em><a HREF="v.clean.html">v.clean</a></em>,
  44. <em><a HREF="v.build.html">v.build</a></em>,
  45. <em><a HREF="v.select.html">v.select</a></em>,
  46. <em><a HREF="v.overlay.html">v.overlay</a></em>
  47. <h2>AUTHORS</h2>
  48. Dave Gerdes, U.S.Army Construction Engineering
  49. Research Laboratory
  50. <br>
  51. Radim Blazek, ITC-Irst, Trento, Italy
  52. <p>
  53. <i>Last changed: $Date$</i>