v.centroids.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <h2>DESCRIPTION</h2>
  2. GRASS defines vector areas as composite entities consisting of a set of
  3. closed boundaries and a centroid. The attribute information associated
  4. with that area is linked to the centroid. The <em>v.centroids</em> module
  5. adds centroids to closed boundaries in the <b>input</b> file and assigns a
  6. category number to them. The starting value as well as the increment size
  7. may be set using optional parameters.
  8. <p>Multiple attributes may be linked to a single vector entity through
  9. numbered fields referred to as layers. Refer to <em>v.category</em>
  10. for more details, as <em>v.centroids</em> is simply a frontend to that
  11. module.
  12. <p>The boundary itself is often stored without any category reference as it
  13. can mark the border between two adjacent areas. Thus it would be ambiguous
  14. as to which feature the attribute would belong. In some cases it may, for
  15. example, represent a road between two parcels of land. In this case it
  16. is entirely appropriate for the boundary to contain category information.
  17. <h2>EXAMPLES</h2>
  18. Create an area from a closed line using North Carolina sample dataset:
  19. <div class="code"><pre>
  20. v.type input=busroute11 output=busroute11_boundary from_type=line to_type=boundary
  21. v.centroids input=busroute11_boundary output=busroute11_area
  22. </pre></div>
  23. <div align="center" style="margin: 10px">
  24. <a href="v_centroids.png">
  25. <img src="v_centroids.png" width="600" height="300" alt="v.centroids example" border="0">
  26. </a><br>
  27. <i>Figure: Creating area from closed line</i>
  28. </div>
  29. <h2>SEE ALSO</h2>
  30. <em>
  31. <a href="v.category.html">v.category</a>
  32. </em>
  33. <h2>AUTHORS</h2>
  34. module: M. Hamish Bowman, Dept. Marine Science, Otago University, New Zealand
  35. <br>
  36. help page: Trevor Wiens
  37. <p><i>Last changed: $Date$</i>