EVOLUTION-MANAGER
Edit File: geometry-methods.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: Methods for retrieving the geometry from a composite...</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 geometry-methods {sp}"><tr><td>geometry-methods {sp}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Methods for retrieving the geometry from a composite (geometry + attributes) object </h2> <h3>Description</h3> <p>geometry retrieves the SpatialXxx object from a SpatialXxxDataFrame object, with Xxx Lines, Points, Polygons, Grid, or Pixels. geometry<- converts a data.frame into a Spatial object. </p> <h3>Usage</h3> <pre> geometry(obj) geometry(obj) <- value </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>obj</code></td> <td> <p>in case of assignment, a data.frame, else an object of class Spatial</p> </td></tr> <tr valign="top"><td><code>value</code></td> <td> <p>object of class Spatial</p> </td></tr> </table> <h3>Methods</h3> <dl> <dt>obj = "Spatial"</dt><dd> </dd> <dt>obj = "SpatialPointsDataFrame"</dt><dd> </dd> <dt>obj = "SpatialMultiPointsDataFrame"</dt><dd> </dd> <dt>obj = "SpatialPolygonsDataFrame"</dt><dd> </dd> <dt>obj = "SpatialPixelsDataFrame"</dt><dd> </dd> <dt>obj = "SpatialGridDataFrame"</dt><dd> </dd> <dt>obj = "SpatialLinesDataFrame"</dt><dd> </dd> </dl> <h3>Author(s)</h3> <p>Edzer Pebesma, <a href="mailto:edzer.pebesma@uni-muenster.de">edzer.pebesma@uni-muenster.de</a></p> <h3>Examples</h3> <pre> data(meuse) m = meuse coordinates(m) = meuse[, c("x", "y")] pts = geometry(m) class(pts) geometry(meuse) = pts class(meuse) identical(m, meuse) # TRUE </pre> <hr /><div style="text-align: center;">[Package <em>sp</em> version 1.4-2 <a href="00Index.html">Index</a>]</div> </body></html>