EVOLUTION-MANAGER
Edit File: 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: retrieve bbox from spatial data</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 bbox-methods {sp}"><tr><td>bbox-methods {sp}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> retrieve bbox from spatial data</h2> <h3>Description</h3> <p>retrieves spatial bounding box from spatial data </p> <h3>Usage</h3> <pre> bbox(obj) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>obj</code></td> <td> <p> object deriving from class "Spatial", or one of classes: "Line", "Lines", "Polygon" or "Polygons", or ANY, which requires obj to be an array with at least two columns </p> </td></tr> </table> <h3>Value</h3> <p> two-column matrix; the first column has the minimum, the second the maximum values; rows represent the spatial dimensions</p> <h3>Methods</h3> <dl> <dt>obj = "Spatial"</dt><dd><p> object deriving from class "Spatial" </p> </dd> <dt>obj = "ANY"</dt><dd><p> an array with at least two columns </p> </dd> <dt>obj = "Line"</dt><dd><p> object deriving from class "Line" </p> </dd> <dt>obj = "Lines"</dt><dd><p> object deriving from class "Lines" </p> </dd> <dt>obj = "Polygon"</dt><dd><p> object deriving from class "Polygon" </p> </dd> <dt>obj = "Polygons"</dt><dd><p> object deriving from class "Polygons" </p> </dd> </dl> <h3>Examples</h3> <pre> # just 9 points on a grid: x <- c(1,1,1,2,2,2,3,3,3) y <- c(1,2,3,1,2,3,1,2,3) xy <- cbind(x,y) S <- SpatialPoints(xy) bbox(S) # data.frame data(meuse.grid) coordinates(meuse.grid) <- ~x+y gridded(meuse.grid) <- TRUE bbox(meuse.grid) </pre> <hr /><div style="text-align: center;">[Package <em>sp</em> version 1.4-2 <a href="00Index.html">Index</a>]</div> </body></html>