GEOTIFCP(1)

NAME
geotifcp - Copy TIFF with updated GeoTIFF Metadata

SYNOPSIS
geotifcp [options] [-e esri_worldfile] [-g metadata] input output

DESCRIPTION

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

If the "\FC-g\F[]" 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:

\FC
% geotifcp -h
\F[]

The metadata format is the same as is described in the 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

\FC-g\F[] file
    install GeoTIFF metadata from file

\FC-4\F[] proj4_str
    install GeoTIFF metadata from proj4 string

\FC-e\F[] file
    install positioning info from ESRI Worldfile file

\FC-a\F[]
    append to output instead of overwriting

\FC-8\F[]
    write BigTIFF instead of default ClassicTIFF

\FC-o\F[] offset
    set initial directory offset

\FC-p\F[] \FCcontig\F[]
    pack samples contiguously (e.g. RGBRGB...)

\FC-p\F[] \FCseparate\F[]
    store samples separately (e.g. RRR...GGG...BBB...)

\FC-s\F[]
    write output in strips

\FC-t\F[]
    write output in tiles

\FC-i\F[]
    ignore read errors

\FC-d\F[]
    truncate 8 bitspersample to 4bitspersample

\FC-r\F[] #
    make each strip have no more than # rows

\FC-w\F[] #
    set output tile width (pixels)

\FC-l\F[] #
    set output tile length (pixels)

\FC-f\F[] \FClsb2msb\F[]
    force lsb-to-msb FillOrder for output

\FC-f\F[] \FCmsb2lsb\F[]
    force msb-to-lsb FillOrder for output

\FC-c\F[] lzw[:opts]
    compress output with Lempel-Ziv & Welch encoding

\FC-c\F[] zip[:opts]
    compress output with deflate encoding

\FC-c\F[] jpeg[:opts]
    compress output with JPEG encoding

\FC-c\F[] packbits
    compress output with packbits encoding

\FC-c\F[] g3[:opts]
    compress output with CCITT Group 3 encoding

\FC-c\F[] g4
    compress output with CCITT Group 4 encoding

\FC-c\F[] none
    use no compression algorithm on output

Group 3 options:

\FC1d\F[]
    use default CCITT Group 3 1D-encoding

\FC2d\F[]
    use optional CCITT Group 3 2D-encoding

\FCfill\F[]
    byte-align EOL codes

For example, \FC-c\F[] g3:2d:fill to get G3-2D-encoded data with byte-aligned EOLs

JPEG options:

\FC#\F[]
    set compression quality level (0-100, default 75)

\FCr\F[]
    output color image as RGB rather than YCbCr

For example, \FC-c\F[] jpeg:r:50 to get JPEG-encoded RGB data with 50% comp. quality

LZW and deflate options:

\FC#\F[]
    set predictor value

For example, \FC-c\F[] lzw:2 to get LZW-encoded data with horizontal differencing

SEE ALSO
applygeo(1) listgeo(1)