v.clip.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <h2>DESCRIPTION</h2>
  2. <em>v.clip</em> module enables extracting those features of input
  3. vector map, which overlay features of clip map, as well as their
  4. storing in a new vector map.
  5. <p>In default, boundaries of clip map are dissolved before
  6. clipping. Alternatively, flag <b>-d</b> can be ticked to retain the
  7. boundaries of clip map. Flag <b>-b</b> facilitates clipping by current
  8. computational region.
  9. <p>It is possible to clip vector maps consisting of points, lines,
  10. areas or combinations of these. However, the current version does not
  11. fully support clipping of mixed geometry containing points. In such a
  12. case, the output map will only store clipped lines and/or areas.
  13. <h2>NOTES</h2>
  14. <em>v.clip</em> is a front-end
  15. to <em><a href="v.overlay.html">v.overlay</a></em>, as well
  16. as <em><a href="v.select.html">v.select</a></em>. Clipping of areas
  17. and/or lines can be achieved
  18. using <em><a href="v.overlay.html">v.overlay</a></em>. Clipping of
  19. points can be performed
  20. with <em><a href="v.select.html">v.select<a></em>.
  21. <h2>EXAMPLES</h2>
  22. <h3>Basic use</h3>
  23. Clip railroads by counties Wake and Johnston in North Carolina (North
  24. Carolina data set).
  25. <div class="code"><pre>
  26. v.extract input=boundary_county where="NAME='WAKE' OR NAME='JOHNSTON'" output=county_WAKE_JOHNSTON
  27. v.clip input=railroads clip=county_WAKE_JOHNSTON output=railroads_WAKE_JOHNSTON
  28. </pre></div>
  29. <center>
  30. <img src="v_clip_poly.png" alt="v.clip example" height="255" width="600" ><br>
  31. <em>Figure: v.clip example - basic use</em>
  32. </center>
  33. <h3>Retain boundaries of clip map</h3>
  34. <div class="code"><pre>
  35. v.clip -d input=railroads clip=county_WAKE_JOHNSTON output=railroads_WAKE_JOHNSTON
  36. </pre></div>
  37. <h3>Clip by current computational region</h3>
  38. Clip hospitals by computational region adjusted to counties Wake and
  39. Johnston in North Carolina (North Carolina data set).
  40. It is not obligatory to enter name of clip map. In case it is stated,
  41. the clip map will be omitted.
  42. <div class="code"><pre>
  43. v.extract input=boundary_county where="NAME='WAKE' OR NAME='JOHNSTON'" output=county_WAKE_JOHNSTON
  44. v.clip -r input=hospitals output=hospitals_clip
  45. </pre></div>
  46. <center>
  47. <img src="v_clip_region.png" alt="v.clip example" height="259" width="600"><br>
  48. <em>Figure: v.clip example - clip by computational region</em>
  49. </center>
  50. <h2>SEE ALSO</h2>
  51. <em>
  52. <a href="v.overlay.html">v.overlay</a>,
  53. <a href="v.select.html">v.select</a>,
  54. <a href="v.dissolve.html">v.dissolve</a>,
  55. <a href="v.in.region.html">v.in.region</a>
  56. </em>
  57. <h2>AUTHOR</h2>
  58. Zofie
  59. Cimburova, <a href="http://geomatics.fsv.cvut.cz/research/geoforall/">GeoForAll
  60. Lab</a>, Czech Technical University in Prague, Czech Republic
  61. <p>
  62. <i>Last changed: $Date: 2016-06-28 19:30:00 +0001 (Tue, 28 Jun 2016)$</i>