-
Notifications
You must be signed in to change notification settings - Fork 4
/
g.copy.html
82 lines (60 loc) · 2.41 KB
/
g.copy.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<h2>DESCRIPTION</h2>
A user may access data stored under the other mapsets
listed in his mapset search path. However, the user may
only modify data stored under his own current mapset.
<em>g.copy</em> allows the user to copy existing data files
<em>from</em> other mapsets <em>to</em> the user's current
mapset ($MAPSET). The files to be copied must exist in the
user's current mapset search path and location; output is
sent to the relevant data element directory(ies) under the
user's current mapset.
<h2>EXAMPLES</h2>
If the user wished to copy the existing raster
file <em>soils</em> to a file called <em>soils.ph</em> and
to copy an existing vector map <em>roads</em> to a file
called <em>rds.old</em>, the user could type:
<p>
<div class="code"><pre>
g.copy rast=soils,soils.ph vect=roads,rds.old
</pre></div>
<p>
Data files can also be specified by their mapsets. For
example, the below command copies the raster map named
<em>soils</em> from the mapset <em>wilson</em> to a new
file called <em>soils</em> to be placed under the user's
current mapset:
<p>
<div class="code"><pre>
g.copy rast='soils@wilson',soils
</pre></div>
<p>
If no mapset name is specified, <em>g.copy</em> searches
for the named <em>from</em> map in each of the mapset
directories listed in the user's current mapset search path
in the order in which mapsets are listed there (see
<em><a HREF="g.mapsets.html">g.mapsets</a></em>).
<H2>NOTES</H2>
If the user does not enter parameter values but instead
types only <b>g.copy</b> on the command line the program
will prompt the user for a data type, the name of a file of
this data type to copy, and the name of a new file to hold
the copy. After both file names have been entered, the
copy is created and the user is again prompted for a data
element to be copied, until the user hits RETURN. When
prompted for file names, the user may enter 'list' to see a
list of existing files, or hit RETURN to end the file
listing.
<p>
If a file has support files (e.g., as do raster data
files), these support files will also be copied.
<h2>SEE ALSO</h2>
<em><a HREF="g.access.html">g.access</a></em><br>
<em><a HREF="g.list.html">g.list</a></em><br>
<em><a HREF="g.mapsets.html">g.mapsets</a></em><br>
<em><a HREF="g.remove.html">g.remove</a></em><br>
<em><a HREF="g.rename.html">g.rename</a></em>
<h2>AUTHOR</h2>
Michael Shapiro,
U.S.Army Construction Engineering
Research Laboratory
<p><i>Last changed: $Date$</i><p>