v.dissolve.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <h2>DESCRIPTION</h2>
  2. The <em>v.dissolve</em> module is used to merge adjacent areas in a vector
  3. map which share the same category value. The resulting merged area(s) retains
  4. this category value. Alternatively an integer or string column can be defined
  5. which is used to find adjacent polygons with identical attribute for common
  6. boundary dissolving. In this case the categories are not retained, only the
  7. values of the new key column. See the <em>v.reclass</em> help page for details.
  8. <h2>NOTES</h2>
  9. GRASS defines a vector area as composite entity consisting of a set of
  10. closed boundaries and a centroid. The centroids must contain a
  11. category number
  12. (see <em>v.centroids</em>), this number is linked to area attributes and
  13. database links.
  14. <p>Multiple attributes may be linked to a single vector entity through
  15. numbered fields referred to as layers. Refer to <em>v.category</em> for
  16. more details.
  17. <p>Merging of areas can also be accomplished using
  18. <tt>v.extract -d</tt> which provides some additional options.
  19. In fact, <em>v.dissolve</em> is simply a
  20. front-end to that module. The use of the <em>column</em> parameter
  21. adds a call to <em>v.reclass</em> before.
  22. <h2>EXAMPLES</h2>
  23. <h3>Basic use</h3>
  24. <div class="code"><pre>
  25. v.dissolve input=undissolved output=dissolved
  26. </pre></div>
  27. <h3>Dissolving based on column attributes</h3>
  28. North Carolina data set:
  29. <div class="code"><pre>
  30. g.copy vect=soils_general,mysoils_general
  31. v.dissolve mysoils_general output=mysoils_general_families column=GSL_NAME
  32. </pre></div>
  33. <h3>Dissolving adjacent SHAPE files to remove tile boundaries</h3>
  34. If tile boundaries of adjacent maps (e.g. CORINE Landcover SHAPE files)
  35. have to be removed, an extra step is required to remove duplicated
  36. boundaries:
  37. <div class="code"><pre>
  38. # patch tiles after import:
  39. v.patch -e `g.list type=vector pat="clc2000_*" separator=","` out=clc2000_patched
  40. # remove duplicated tile boundaries:
  41. v.clean clc2000_patched out=clc2000_clean tool=snap,break,rmdupl thresh=.01
  42. # dissolve based on column attributes:
  43. v.dissolve input=clc2000_clean output=clc2000_final col=CODE_00
  44. </pre></div>
  45. <h2>SEE ALSO</h2>
  46. <em>
  47. <a href="v.category.html">v.category</a>,
  48. <a href="v.centroids.html">v.centroids</a>,
  49. <a href="v.extract.html">v.extract</a>,
  50. <a href="v.reclass.html">v.reclass</a>
  51. </em>
  52. <h2>AUTHORS</h2>
  53. module: M. Hamish Bowman, Dept. Marine Science, Otago University, New Zealand<br>
  54. Markus Neteler for column support<br>
  55. help page: Trevor Wiens
  56. <!--
  57. <p>
  58. <i>Last changed: $Date$</i>
  59. -->