g.copy.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <h2>DESCRIPTION</h2>
  2. A user may access data stored under the other mapsets listed in their
  3. mapset search path. However, the user may only modify data stored
  4. under their own current mapset. <em>g.copy</em> allows the user to copy
  5. existing data files <b>from</b> other mapsets <b>to</b> the user's
  6. current mapset ($MAPSET). The files to be copied must exist in the
  7. user's current mapset search path and location; output is sent to the
  8. relevant data element directory(ies) under the user's current mapset.
  9. <h2>EXAMPLES</h2>
  10. If the user wished to copy the existing raster
  11. file <em>soils</em> to a file called <em>soils.ph</em> and
  12. to copy an existing vector map <em>roads</em> to a file
  13. called <em>rds.old</em>, the user could type:
  14. <div class="code"><pre>
  15. g.copy raster=soils,soils.ph
  16. g.copy vector=roads,rds.old
  17. # or even combined:
  18. g.copy raster=soils,soils.ph vector=roads,rds.old
  19. </pre></div>
  20. <p>
  21. Data files can also be specified by their mapsets. For
  22. example, the below command copies the raster map named
  23. <em>soils</em> from the mapset <em>wilson</em> to a new
  24. file called <em>soils</em> to be placed under the user's
  25. current mapset:
  26. <div class="code"><pre>
  27. g.copy raster=soils@wilson,soils
  28. </pre></div>
  29. If no mapset name is specified, <em>g.copy</em> searches for the
  30. named <b>from</b> map in each of the mapset directories listed in the
  31. user's current mapset search path in the order in which mapsets are
  32. listed there (see <em><a href="g.mapsets.html">g.mapsets</a></em>).
  33. <h2>SEE ALSO</h2>
  34. <em>
  35. <a href="g.access.html">g.access</a>,
  36. <a href="g.list.html">g.list</a>,
  37. <a href="g.mapsets.html">g.mapsets</a>,
  38. <a href="g.remove.html">g.remove</a>,
  39. <a href="g.rename.html">g.rename</a>
  40. </em>
  41. <h2>AUTHOR</h2>
  42. Michael Shapiro,
  43. U.S. Army Construction Engineering
  44. Research Laboratory
  45. <p>
  46. <i>Last changed: $Date$</i>