EVOLUTION-MANAGER
Edit File: st_bbox.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: Return bounding of a simple feature or simple feature set</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 st_bbox {sf}"><tr><td>st_bbox {sf}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Return bounding of a simple feature or simple feature set</h2> <h3>Description</h3> <p>Return bounding of a simple feature or simple feature set </p> <h3>Usage</h3> <pre> ## S3 method for class 'bbox' is.na(x) st_bbox(obj, ...) ## S3 method for class 'POINT' st_bbox(obj, ...) ## S3 method for class 'MULTIPOINT' st_bbox(obj, ...) ## S3 method for class 'LINESTRING' st_bbox(obj, ...) ## S3 method for class 'POLYGON' st_bbox(obj, ...) ## S3 method for class 'MULTILINESTRING' st_bbox(obj, ...) ## S3 method for class 'MULTIPOLYGON' st_bbox(obj, ...) ## S3 method for class 'GEOMETRYCOLLECTION' st_bbox(obj, ...) ## S3 method for class 'MULTISURFACE' st_bbox(obj, ...) ## S3 method for class 'MULTICURVE' st_bbox(obj, ...) ## S3 method for class 'CURVEPOLYGON' st_bbox(obj, ...) ## S3 method for class 'COMPOUNDCURVE' st_bbox(obj, ...) ## S3 method for class 'POLYHEDRALSURFACE' st_bbox(obj, ...) ## S3 method for class 'TIN' st_bbox(obj, ...) ## S3 method for class 'TRIANGLE' st_bbox(obj, ...) ## S3 method for class 'CIRCULARSTRING' st_bbox(obj, ...) ## S3 method for class 'sfc' st_bbox(obj, ...) ## S3 method for class 'sf' st_bbox(obj, ...) ## S3 method for class 'Spatial' st_bbox(obj, ...) ## S3 method for class 'Raster' st_bbox(obj, ...) ## S3 method for class 'Extent' st_bbox(obj, ..., crs = NA_crs_) ## S3 method for class 'numeric' st_bbox(obj, ..., crs = NA_crs_) NA_bbox_ ## S3 method for class 'bbox' format(x, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>object of class <code>bbox</code></p> </td></tr> <tr valign="top"><td><code>obj</code></td> <td> <p>object to compute the bounding box from</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>for format.bbox, passed on to <a href="../../base/html/format.html">format</a> to format individual numbers</p> </td></tr> <tr valign="top"><td><code>crs</code></td> <td> <p>object of class <code>crs</code>, or argument to <a href="st_crs.html">st_crs</a>, specifying the CRS of this bounding box.</p> </td></tr> </table> <h3>Format</h3> <p>An object of class <code>bbox</code> of length 4. </p> <h3>Details</h3> <p><code>NA_bbox_</code> represents the missing value for a <code>bbox</code> object </p> <h3>Value</h3> <p>a numeric vector of length four, with <code>xmin</code>, <code>ymin</code>, <code>xmax</code> and <code>ymax</code> values; if <code>obj</code> is of class <code>sf</code>, <code>sfc</code>, <code>Spatial</code> or <code>Raster</code>, the object returned has a class <code>bbox</code>, an attribute <code>crs</code> and a method to print the bbox and an <code>st_crs</code> method to retrieve the coordinate reference system corresponding to <code>obj</code> (and hence the bounding box). <a href="st_as_sfc.html">st_as_sfc</a> has a methods for <code>bbox</code> objects to generate a polygon around the four bounding box points. </p> <h3>Examples</h3> <pre> a = st_sf(a = 1:2, geom = st_sfc(st_point(0:1), st_point(1:2)), crs = 4326) st_bbox(a) st_as_sfc(st_bbox(a)) st_bbox(c(xmin = 16.1, xmax = 16.6, ymax = 48.6, ymin = 47.9), crs = st_crs(4326)) </pre> <hr /><div style="text-align: center;">[Package <em>sf</em> version 0.9-5 <a href="00Index.html">Index</a>]</div> </body></html>