1
2
3
4
5GEOTIFCP(1) libgeotiff Manual Pages GEOTIFCP(1)
6
7
8
10 geotifcp - Copy TIFF with updated GeoTIFF Metadata
11
12
14 geotifcp [options] [-e esri_worldfile] [-g metadata] input output
15
17 geotifcp is identical in function to the LIBTIFF program tiffcp, with
18 the additional feature that if the "-g" option is used the GeoTIFF
19 information from the file will be installed into the output file. The
20 "-e worldfile" option will override the tiepoint and scale information
21 from the metadata file based on the contents of the ESRI worldfile.
22
23 If the "-g" option is not used the geotiff information from the source
24 file is preserved in the new output file.
25
26 "geotifcp" inherits all the other file-transformation capabilities of
27 the tiffcp program; for help on the additional parameters give the com‐
28 mand:
29
30 % geotifcp -h
31
32 The metadata format is the same as is described in the listgeo(1) pro‐
33 gram. Normally metadata files for use with geotifcp are generated from
34 a similar file with listgeo, and then modified by hand as required.
35
36
38 -g file
39 install GeoTIFF metadata from file
40
41 -4 proj4_str
42 install GeoTIFF metadata from proj4 string
43
44 -e file
45 install positioning info from ESRI Worldfile file
46
47 -a append to output instead of overwriting
48
49 -8 write BigTIFF instead of default ClassicTIFF
50
51 -o offset
52 set initial directory offset
53
54 -p contig
55 pack samples contiguously (e.g. RGBRGB...)
56
57 -p separate
58 store samples separately (e.g. RRR...GGG...BBB...)
59
60 -s write output in strips
61
62 -t write output in tiles
63
64 -i ignore read errors
65
66 -d truncate 8 bitspersample to 4bitspersample
67
68 -r # make each strip have no more than # rows
69
70 -w # set output tile width (pixels)
71
72 -l # set output tile length (pixels)
73
74 -f lsb2msb
75 force lsb-to-msb FillOrder for output
76
77 -f msb2lsb
78 force msb-to-lsb FillOrder for output
79
80 -c lzw[:opts]
81 compress output with Lempel-Ziv & Welch encoding
82
83 -c zip[:opts]
84 compress output with deflate encoding
85
86 -c jpeg[:opts]
87 compress output with JPEG encoding
88
89 -c packbits
90 compress output with packbits encoding
91
92 -c g3[:opts]
93 compress output with CCITT Group 3 encoding
94
95 -c g4 compress output with CCITT Group 4 encoding
96
97 -c none
98 use no compression algorithm on output
99
100 Group 3 options:
101
102 1d use default CCITT Group 3 1D-encoding
103
104 2d use optional CCITT Group 3 2D-encoding
105
106 fill byte-align EOL codes
107
108 For example, -c g3:2d:fill to get G3-2D-encoded data with byte-aligned
109 EOLs
110
111 JPEG options:
112
113 # set compression quality level (0-100, default 75)
114
115 r output color image as RGB rather than YCbCr
116
117 For example, -c jpeg:r:50 to get JPEG-encoded RGB data with 50% comp.
118 quality
119
120 LZW and deflate options:
121
122 # set predictor value
123
124 For example, -c lzw:2 to get LZW-encoded data with horizontal differ‐
125 encing
126
127
129 applygeo(1) listgeo(1)
130
131
132
133
134libgeotiff 1.4.1 August 2016 GEOTIFCP(1)