1gdalmanage(1) General Commands Manual gdalmanage(1)
2
3
4
6 gdalmanageIdentify, delete, rename and copy raster data files.
7
9 Usage: gdalmanage mode [-r] [-u] [-f format]
10 datasetname [newdatasetname]
11
13 The gdalmanage program can perform various operations on raster data
14 files, depending on the chosen mode. This includes identifying raster
15 data types and deleting, renaming or copying the files.
16
17 mode:
18 Mode of operation
19
20 identify datasetname:
21 List data format of file.
22
23 copy datasetname newdatasetname:
24 Create a copy of the raster file with a new name.
25
26 rename datasetname newdatasetname:
27 Change the name of the raster file.
28
29 delete datasetname:
30 Delete raster file.
31
32 -r:
33 Recursively scan files/folders for raster files.
34
35 -u:
36 Report failures if file type is unidentified.
37
38 -f format:
39 Specify format of raster file if unknown by the application. Uses
40 short data format name (e.g. GTiff).
41
42 datasetname:
43 Raster file to operate on.
44
45 newdatasetname:
46 For copy and rename modes, you provide a source filename and a
47 target filename, just like copy and move commands in an operating
48 system.
49
51 Using identify mode
52 Report the data format of the raster file by using the identify mode
53 and specifying a data file name:
54
55 $ gdalmanage identify NE1_50M_SR_W.tif
56
57 NE1_50M_SR_W.tif: GTiff
58
59 Recursive mode will scan subfolders and report the data format:
60
61 $ gdalmanage identify -r 50m_raster/
62
63 NE1_50M_SR_W/ne1_50m.jpg: JPEG
64 NE1_50M_SR_W/ne1_50m.png: PNG
65 NE1_50M_SR_W/ne1_50m_20pct.tif: GTiff
66 NE1_50M_SR_W/ne1_50m_band1.tif: GTiff
67 NE1_50M_SR_W/ne1_50m_print.png: PNG
68 NE1_50M_SR_W/NE1_50M_SR_W.aux: HFA
69 NE1_50M_SR_W/NE1_50M_SR_W.tif: GTiff
70 NE1_50M_SR_W/ne1_50m_sub.tif: GTiff
71 NE1_50M_SR_W/ne1_50m_sub2.tif: GTiff.fi
72
73 Using copy mode
74 Copy the raster data:
75
76 $ gdalmanage copy NE1_50M_SR_W.tif ne1_copy.tif
77
78 Using rename mode
79 Rename raster data:
80
81 $ gdalmanage rename NE1_50M_SR_W.tif ne1_rename.tif
82
83
84 Using delete mode
85 Delete the raster data:
86
87 gdalmanage delete NE1_50M_SR_W.tif
88
90 Tyler Mitchell spatialguru@shaw.ca
91
92
93
94GDAL Thu Jul 25 2019 gdalmanage(1)