writeEnvelope: Envelope of Spatial Objects

Description Usage Arguments Details Value See Also

View source: R/writeEnvelope.R

Description

Takes a Spatial object and returns a data frame with six columns representing the envelope of each element in the Spatial object.

Usage

1
writeEnvelope(obj, centerfun = mean)

Arguments

obj

object inheriting class Spatial.

centerfun

function to apply to the x-axis limits and y-axis limits of the bounding box to obtain the x-coordinate and y-coordinate of the center of the bounding box.

Details

obj may be an object of class SpatialPoints, SpatialPointsDataFrame, SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame, or a list in which each element is an object of class SpatialPoints or SpatialPointsDataFrame.

Value

A data frame with six columns named XMax, XMin, YMax, YMin, XCenter, and YCenter. The first four columns represent the corners of the bounding box of each element in obj. The last two columns represent the center of the bounding box of each element in obj. The number of rows in the returned data frame is the same as the length of the argument obj.

When this function is run in TIBCO Enterprise Runtime for R (TERR), the columns of the returned data frame have the SpotfireColumnMetaData attribute set to enable TIBCO Spotfire to recognize them as containing envelope information.

See Also

Example usage at writeWKB


ianmcook/wkb documentation built on May 17, 2017, 1:29 a.m.