Usage
gdalwarp(srcfile, dstfile, s_srs, t_srs, to, order, tps, rpc, geoloc, et,
refine_gcps, te, tr, tap, ts, wo, ot, wt, r, srcnodata, dstnodata, dstalpha,
wm, multi, q, of = "GTiff", co, cutline, cl, cwhere, csql, cblend,
crop_to_cutline, overwrite, nomd, cvmd, setci, additional_commands,
output_Raster = FALSE, verbose = FALSE)
Arguments
srcfile
Character. The source file name(s).
dstfile
Character. The destination file name.
s_srs
Character. source spatial reference set. The
coordinate systems that can be passed are anything
supported by the OGRSpatialReference.SetFromUserInput()
call, which includes EPSG PCS and GCSes (ie. EPSG:4296),
PROJ.4 declarations (as above), or the
t_srs
Character. target spatial reference set. The
coordinate systems that can be passed are anything
supported by the OGRSpatialReference.SetFromUserInput()
call, which includes EPSG PCS and GCSes (ie. EPSG:4296),
PROJ.4 declarations (as above), or the
to
Character. set a transformer option suitable to
pass to GDALCreateGenImgProjTransformer2().
order
Numeric. order of polynomial used for
warping (1 to 3). The default is to select a polynomial
order based on the number of GCPs.
tps
Logical. Force use of thin plate spline
transformer based on available GCPs.
rpc
Logical. Force use of RPCs.
geoloc
Logical. Force use of Geolocation Arrays.
et
Numeric. error threshold for transformation
approximation (in pixel units - defaults to 0.125).
refine_gcps
Numeric. (GDAL >= 1.9.0) refines the
GCPs by automatically eliminating outliers. Outliers will
be eliminated until minimum_gcps are left or when no
outliers can be detected. The tolerance is passed to
adjust when a GCP will be eliminated. Note tha
te
Numeric. (c(xmin,ymin,xmax,ymax)). set
georeferenced extents of output file to be created (in
target SRS).
tr
Numeric. (c(xres,yres)). set output file
resolution (in target georeferenced units)
tap
Logical. (GDAL >= 1.8.0) (target aligned
pixels) align the coordinates of the extent of the output
file to the values of the -tr, such that the aligned
extent includes the minimum extent.
ts
Numeric. (c(width,height)). set output file
size in pixels and lines. If width or height is set to 0,
the other dimension will be guessed from the computed
resolution. Note that -ts cannot be used with -tr
wo
Character. Set a warp options. The
GDALWarpOptions::papszWarpOptions docs show all options.
Multiple -wo options may be listed.
ot
Character. For the output bands to be of the
indicated data type.
wt
Character. Working pixel data type. The data
type of pixels in the source image and destination image
buffers.
r
Character. resampling_method.
("near"|"bilinear"|"cubic"|"cubicspline"|"lanczos"|"average"|"mode")
See Description.
srcnodata
Character. Set nodata masking values for
input bands (different values can be supplied for each
band). If more than one value is supplied all values
should be quoted to keep them together as a single
operating system argument. Masked values will n
dstnodata
Character. Set nodata values for output
bands (different values can be supplied for each band).
If more than one value is supplied all values should be
quoted to keep them together as a single operating system
argument. New files will be initializ
dstalpha
Logical. Create an output alpha band to
identify nodata (unset/transparent) pixels.
wm
Numeric. Set the amount of memory (in
megabytes) that the warp API is allowed to use for
caching.
multi
Logical. Use multithreaded warping
implementation. Multiple threads will be used to process
chunks of image and perform input/output operation
simultaneously.
of
Character. Select the output format. The
default is GeoTIFF (GTiff). Use the short format name.
co
Character. passes a creation option to the
output format driver. Multiple -co options may be listed.
See format specific documentation for legal creation
options for each format.
cutline
Character. Enable use of a blend cutline
from the name OGR support datasource.
cl
Character. Select the named layer from the
cutline datasource.
cwhere
Character. Restrict desired cutline
features based on attribute query.
csql
Character. Select cutline features using an
SQL query instead of from a layer with -cl.
cblend
Numeric. Set a blend distance to use to
blend over cutlines (in pixels).
crop_to_cutline
Logical. (GDAL >= 1.8.0) Crop the
extent of the target dataset to the extent of the
cutline.
overwrite
Logical. (GDAL >= 1.8.0) Overwrite the
target dataset if it already exists.
nomd
Logical. (GDAL >= 1.10.0) Do not copy
metadata. Without this option, dataset and band metadata
(as well as some band information) will be copied from
the first source dataset. Items that differ between
source datasets will be set to * (see -cvmd o
cvmd
Character. (GDAL >= 1.10.0) Value to set
metadata items that conflict between source datasets
(default is "*"). Use "" to remove conflicting items.
setci
Logical. (GDAL >= 1.10.0) Set the color
interpretation of the bands of the target dataset from
the source dataset.
additional_commands
Character. Additional commands
to pass directly to gdalwarp.
output_Raster
Logical. Return output dst_dataset
as a RasterBrick?