1gdalwarp(1)                 General Commands Manual                gdalwarp(1)
2
3
4

NAME

6       gdalwarp - gdalwarp simple image reprojection and warping utility
7

SYNOPSIS

9       gdalwarp
10           [-s_srs srs_def] [-t_srs srs_def] [-order n] [-et err_threshold]
11           [-te xmin ymin xmax ymax] [-tr xres yres] [-ts width height]
12           [-wo "NAME=VALUE"] [-ot Byte/Int16/...] [-wt Byte/Int16]
13           [-srcnodata "value [value...]"] [-dstnodata "value [value...]"]
14           [-rn] [-rb] [-rc] [-rcs] [-wm memory_in_mb] [-multi] [-q]
15           [-of format] [-co "NAME=VALUE"]* srcfile dstfile
16

DESCRIPTION

18       The gdalwarp utility is a simple image reprojection and warping
19       utility. The program can reproject to any support projection, and can
20       also apply GCPs stored with the image if the image is 'raw' with
21       control information.
22
23       -s_srs srs def:
24           source spatial reference set. The coordinate systems that can be
25           passed are anything supported by the
26           OGRSpatialReference.SetFromUserInput() call, which includes EPSG
27           PCS and GCSes (ie. EPSG:4296), PROJ.4 declarations (as above), or
28           the name of a .prf file containing well known text.
29
30       -t_srs srs_def:
31           target spatial reference set. The coordinate systems that can be
32           passed are anything supported by the
33           OGRSpatialReference.SetFromUserInput() call, which includes EPSG
34           PCS and GCSes (ie. EPSG:4296), PROJ.4 declarations (as above), or
35           the name of a .prf file containing well known text.
36
37       -order n:
38           order of polynomial used for warping (1 to 3). The default is to
39           select a polynomial order based on the number of GCPs.
40
41       -tps
42           Enable use of thin plate spline transformer based on available
43           GCPs. Use this instead of the -order switch.
44
45       -et err_threshold:
46           error threshold for transformation approximation (in pixel units -
47           defaults to 0.125).
48
49       -te xmin ymin xmax ymax:
50           set georeferenced extents of output file to be created.
51
52       -tr xres yres:
53           set output file resolution (in target georeferenced units)
54
55       -ts width height:
56           set output file size in pixels and lines
57
58       -wo 'NAME=VALUE':
59           Set a warp options. The GDALWarpOptions::papszWarpOptions docs show
60           all options. Multiple -wo options may be listed.
61
62       -ot type:
63           For the output bands to be of the indicated data type.
64
65       -wt type:
66           Working pixel data type. The data type of pixels in the source
67           image and destination image buffers.
68
69       -rn:
70           Use nearest neighbour resampling (default, fastest algorithm, worst
71           interpolation quality).
72
73       -rb:
74           Use bilinear resampling.
75
76       -rc:
77           Use cubic resampling.
78
79       -rcs:
80           Use cubic spline resampling (slowest algorithm).
81
82       -srcnodata value [value...]:
83           Set nodata masking values for input bands (different values can be
84           supplied for each band). If more than one value is supplied all
85           values should be quoted to keep them together as a single operating
86           system argument. Masked values will not be used in interpolation.
87
88       -dstnodata value [value...]:
89           Set nodata values for output bands (different values can be
90           supplied for each band). If more than one value is supplied all
91           values should be quoted to keep them together as a single operating
92           system argument. New files will be initialized to this value and if
93           possible the nodata value will be recorded in the output file.
94
95       -wm memory_in_mb:
96           Set the amount of memory (in megabytes) that the warp API is
97           allowed to use for caching.
98
99       -multi:
100           Use multithreaded warping implementation. Multiple threads will be
101           used to process chunks of image and perform input/output operation
102           simultaneously.
103
104       -q:
105           Be quiet.
106
107       -of format:
108           Select the output format. The default is GeoTIFF (GTiff). Use the
109           short format name.
110
111       -co 'NAME=VALUE':
112           passes a creation option to the output format driver. Multiple -co
113           options may be listed. See format specific documentation for legal
114           creation options for each format.
115
116       srcfile:
117           The source file name.
118
119       dstfile:
120           The destination file name.
121
122       Mosaicing into an existing output file is supported if the output file
123       already exists.
124

EXAMPLE

126       For instance, an eight bit spot scene stored in GeoTIFF with control
127       points mapping the corners to lat/long could be warped to a UTM
128       projection with a command like this:
129
130       gdalwarp -t_srs '+proj=utm +zone=11 +datum=WGS84' raw_spot.tif utm11.tif
131
132       For instance, the second channel of an ASTER image stored in HDF with
133       control points mapping the corners to lat/long could be warped to a UTM
134       projection with a command like this:
135
136       gdalwarp HDF4_SDS:ASTER_L1B:"pg-PR1B0000-2002031402_100_001":2 pg-PR1B0000-2002031402_100_001_2.tif
137

AUTHORS

139       Frank Warmerdam <warmerdam@pobox.com>, Silke Reimer
140       <silke@intevation.de>
141
142
143
144GDAL                              31 Jul 2007                      gdalwarp(1)
Impressum