Usage
gdal_grid(src_datasource, dst_filename, ot, of, txe, tye, outsize, a_srs,
zfield, z_increase, z_multiply, a, spat, clipsrc, clipsrcsql, clipsrclayer,
clipsrcwhere, l, where, sql, co, q, output_Raster = FALSE,
ignore.full_scan = TRUE, verbose = FALSE)
Arguments
src_datasource
Character. Any OGR supported readable datasource.
dst_filename
Character. The GDAL supported output file.
ot
Character. "type". For the output bands to be of the indicated data type.
of
Character. "format". Select the output format. The default is GeoTIFF (GTiff). Use the short format name.
txe
Numeric. c(xmin,xmax). Set georeferenced X extents of output file to be created.
tye
Numeric. c(ymin,ymax). Set georeferenced Y extents of output file to be created.
outsize
Numeric. c(xsize,ysize). Set the size of the output file in pixels and lines.
a_srs
Character. "srs_def". Override the projection for the output file. The srs_def may be any of the usual GDAL/OGR forms, complete WKT, PROJ.4, EPSG:n or a file containing the WKT.
zfield
Character. "field_name". Identifies an attribute field on the features to be used to get a Z value from. This value overrides Z value read from feature geometry record (naturally, if you have a Z value in geometry, otherwise you have no choice and should
z_increase
Numeric. increase_value. Addition to the attribute field on the features to be used to get a Z value from. The addition should be the same unit as Z value. The result value will be Z value + Z increase value. The default value is 0.
z_multiply
Numeric. multiply_value. This is multiplication ratio for Z field. This can be used for shift from e.g. foot to meters or from elevation to deep. The result value will be (Z value + Z increase value) * Z multiply value. The default value is 1.
a
Character. [algorithm[:parameter1=value1][:parameter2=value2]...] Set the interpolation algorithm or data metric name and (optionally) its parameters. See INTERPOLATION ALGORITHMS and DATA METRICS sections for further discussion of available options.
spat
Numeric. c(xmin,ymin,xmax,ymax). Adds a spatial filter to select only features contained within the bounding box described by (xmin, ymin) - (xmax, ymax).
clipsrc
Numeric or Character. c(xmin,ymin,xmax,ymax)|WKT|datasource|spat_extent. Adds a spatial filter to select only features contained within the specified bounding box (expressed in source SRS), WKT geometry (POLYGON or MULTIPOLYGON), from a datasource or to
clipsrcsql
Character. Select desired geometries using an SQL query instead.
clipsrclayer
Character. "layername". Select the named layer from the source clip datasource.
clipsrcwhere
Character. "expression". Restrict desired geometries based on attribute query.
l
Character. "layername". Indicates the layer(s) from the datasource that will be used for input features. May be specified multiple times, but at least one layer name or a -sql option must be specified.
where
Character. "expression". An optional SQL WHERE style query expression to be applied to select features to process from the input layer(s).
sql
Character. "select_statement". An SQL statement to be evaluated against the datasource to produce a virtual layer of features to be processed.
co
Character. "NAME=VALUE". 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.
q
Logical. Suppress progress monitor and other non-error output.
output_Raster
Logical. Return output dst_filename as a RasterBrick?
ignore.full_scan
Logical. If FALSE, perform a brute-force scan if other installs are not found. Default is TRUE.
verbose
Logical. Enable verbose execution? Default is FALSE.