GEOTIFCP(1) libgeotiff Manual Pages GEOTIFCP(1)

# [NAME](#NAME)

geotifcp - Copy TIFF with updated GeoTIFF Metadata

# [SYNOPSIS](#SYNOPSIS)

**geotifcp** \[*options*] \[**-e** *esri\_worldfile*] \[**-g** *metadata*] *input* *output*

# [DESCRIPTION](#DESCRIPTION)

**geotifcp** is identical in function to the LIBTIFF program **tiffcp**, with the additional feature that if the "**-g**" option is used the GeoTIFF information from the file will be installed into the output file. The "**-e** *worldfile*" option will override the tiepoint and scale information from the metadata file based on the contents of the ESRI worldfile.

If the "**-g**" option is not used the geotiff information from the source file is preserved in the new output file.

"**geotifcp**" inherits all the other file-transformation capabilities of the **tiffcp** program; for help on the additional parameters give the command:

```
% geotifcp -h
```

The metadata format is the same as is described in the [**listgeo**(1)](/man/os/libgeotiff/listgeo.1) program. Normally metadata files for use with **geotifcp** are generated from a similar file with **listgeo**, and then modified by hand as required.

# [OPTIONS](#OPTIONS)

[**-g** *file*](#g)

install GeoTIFF metadata from *file*

**-4** *proj4\_str*

install GeoTIFF metadata from proj4 string

[**-e** *file*](#e)

install positioning info from ESRI Worldfile *file*

[**-a**](#a)

append to output instead of overwriting

**-8**

write BigTIFF instead of default ClassicTIFF

[**-o** *offset*](#o)

set initial directory offset

[**-p** contig](#p)

pack samples contiguously (e.g. RGBRGB...)

[**-p** separate](#p~2)

store samples separately (e.g. RRR...GGG...BBB...)

[**-s**](#s)

write output in strips

[**-t**](#t)

write output in tiles

[**-i**](#i)

ignore read errors

[**-d**](#d)

truncate 8 bitspersample to 4bitspersample

[**-r** *#*](#r)

make each strip have no more than *#* rows

[**-w** *#*](#w)

set output tile width (pixels)

[**-l** *#*](#l)

set output tile length (pixels)

[**-f** lsb2msb](#f)

force lsb-to-msb FillOrder for output

[**-f** msb2lsb](#f~2)

force msb-to-lsb FillOrder for output

[**-c** lzw\[:opts\]](#c)

compress output with Lempel-Ziv & Welch encoding

[**-c** zip\[:opts\]](#c~2)

compress output with deflate encoding

[**-c** jpeg\[:opts\]](#c~3)

compress output with JPEG encoding

[**-c** packbits](#c~4)

compress output with packbits encoding

[**-c** g3\[:opts\]](#c~5)

compress output with CCITT Group 3 encoding

[**-c** g4](#c~6)

compress output with CCITT Group 4 encoding

[**-c** none](#c~7)

use no compression algorithm on output

Group 3 options:

**1d**

use default CCITT Group 3 1D-encoding

**2d**

use optional CCITT Group 3 2D-encoding

[**fill**](#fill)

byte-align EOL codes

For example, **-c** g3:2d:fill to get G3-2D-encoded data with byte-aligned EOLs

JPEG options:

**#**

set compression quality level (0-100, default 75)

[**r**](#r~2)

output color image as RGB rather than YCbCr

For example, **-c** jpeg:r:50 to get JPEG-encoded RGB data with 50% comp. quality

LZW and deflate options:

**#**

set predictor value

For example, **-c** lzw:2 to get LZW-encoded data with horizontal differencing

# [SEE ALSO](#SEE_ALSO)

[**applygeo**(1)](/man/os/libgeotiff/applygeo.1) [**listgeo**(1)](/man/os/libgeotiff/listgeo.1)

August 2016 libgeotiff 1.4.1

---

Document: geotifcp(1) from libgeotiff 1.7.4-r6 (Chainguard OS)
Source: https://github.com/OSGeo/libgeotiff
