EVOLUTION-MANAGER
Edit File: gdal.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: functions to interact with gdal not meant to be called...</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for gdal {sf}"><tr><td>gdal {sf}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>functions to interact with gdal not meant to be called directly by users (but e.g. by stars::read_stars)</h2> <h3>Description</h3> <p>functions to interact with gdal not meant to be called directly by users (but e.g. by stars::read_stars) </p> <h3>Usage</h3> <pre> gdal_read( x, ..., options = character(0), driver = character(0), read_data = TRUE, NA_value = NA_real_, RasterIO_parameters = list() ) gdal_write( x, ..., file, driver = "GTiff", options = character(0), type = "Float32", NA_value = NA_real_, geotransform, update = FALSE ) gdal_inv_geotransform(gt) gdal_crs(file, options = character(0)) gdal_metadata( file, domain_item = character(0), options = character(0), parse = TRUE ) gdal_subdatasets(file, options = character(0), name = TRUE) gdal_polygonize( x, mask = NULL, file = tempfile(), driver = "GTiff", use_integer = TRUE, geotransform, breaks = classInt::classIntervals(na.omit(as.vector(x[[1]])))$brks, use_contours = FALSE, contour_lines = FALSE, connect8 = FALSE, ... ) gdal_rasterize(sf, x, gt, file, driver = "GTiff", options = character()) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>character vector, possibly of length larger than 1 when more than one raster is read</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>ignored</p> </td></tr> <tr valign="top"><td><code>options</code></td> <td> <p>character; raster layer read options</p> </td></tr> <tr valign="top"><td><code>driver</code></td> <td> <p>character; when empty vector, driver is auto-detected.</p> </td></tr> <tr valign="top"><td><code>read_data</code></td> <td> <p>logical; if <code>FALSE</code>, only the imagery metadata is returned</p> </td></tr> <tr valign="top"><td><code>NA_value</code></td> <td> <p>(double) non-NA value to use for missing values; if <code>NA</code>, when writing missing values are not specially flagged in output dataset, when reading the default (dataset) missing values are used (if present / set).</p> </td></tr> <tr valign="top"><td><code>RasterIO_parameters</code></td> <td> <p>list with named parameters to GDAL's RasterIO; see the stars::read_stars documentation.</p> </td></tr> <tr valign="top"><td><code>file</code></td> <td> <p>character; file name</p> </td></tr> <tr valign="top"><td><code>type</code></td> <td> <p>gdal write type</p> </td></tr> <tr valign="top"><td><code>geotransform</code></td> <td> <p>length 6 numeric vector with GDAL geotransform parameters.</p> </td></tr> <tr valign="top"><td><code>update</code></td> <td> <p>logical; <code>TRUE</code> if in an existing raster file pixel values shall be updated.</p> </td></tr> <tr valign="top"><td><code>gt</code></td> <td> <p>double vector of length 6</p> </td></tr> <tr valign="top"><td><code>domain_item</code></td> <td> <p>character vector of length 0, 1 (with domain), or 2 (with domain and item); use <code>""</code> for the default domain, use <code>NA_character_</code> to query the domain names.</p> </td></tr> <tr valign="top"><td><code>parse</code></td> <td> <p>logical; should metadata be parsed into a named list (<code>TRUE</code>) or returned as character data?</p> </td></tr> <tr valign="top"><td><code>name</code></td> <td> <p>logical; retrieve name of subdataset? If <code>FALSE</code>, retrieve description</p> </td></tr> <tr valign="top"><td><code>mask</code></td> <td> <p>stars object with NA mask (0 where NA), or NULL</p> </td></tr> <tr valign="top"><td><code>use_integer</code></td> <td> <p>boolean; if <code>TRUE</code>, raster values are read as (and rounded to) unsigned 32-bit integers values; if <code>FALSE</code> they are read as 32-bit floating points numbers. The former is supposedly faster.</p> </td></tr> <tr valign="top"><td><code>breaks</code></td> <td> <p>numeric vector with break values for contour polygons (or lines)</p> </td></tr> <tr valign="top"><td><code>use_contours</code></td> <td> <p>logical;</p> </td></tr> <tr valign="top"><td><code>contour_lines</code></td> <td> <p>logical;</p> </td></tr> <tr valign="top"><td><code>connect8</code></td> <td> <p>logical; if <code>TRUE</code> use 8 connection algorithm, rather than 4</p> </td></tr> <tr valign="top"><td><code>sf</code></td> <td> <p>object of class <code>sf</code></p> </td></tr> </table> <h3>Details</h3> <p>These functions are exported for the single purpose of being used by package stars, they are not meant to be used directly and may change or disappear without prior notice or deprecation warnings. </p> <p>gdal_inv_geotransform returns the inverse geotransform </p> <p>gdal_crs reads coordinate reference system from GDAL data set </p> <p>get_metadata gets metadata of a raster layer </p> <p>gdal_subdatasets returns the subdatasets of a gdal dataset </p> <h3>Value</h3> <p>object of class <code>crs</code>, see <a href="st_crs.html">st_crs</a>. </p> <p>named list with metadata items </p> <p><code>gdal_subdatasets</code> returns a zero-length list if <code>file</code> does not have subdatasets, and else a named list with subdatasets. </p> <h3>Examples</h3> <pre> ## Not run: f = system.file("tif/L7_ETMs.tif", package="stars") f = system.file("nc/avhrr-only-v2.19810901.nc", package = "stars") gdal_metadata(f) gdal_metadata(f, NA_character_) try(gdal_metadata(f, "wrongDomain")) gdal_metadata(f, c("", "AREA_OR_POINT")) ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>sf</em> version 0.9-5 <a href="00Index.html">Index</a>]</div> </body></html>