spEllipsoid: Create an ellipsoid as SpatialPolygons object

Description Usage Arguments Value Author(s) See Also Examples

Description

Methods to create an ellipsoid as SpatialPolygons object. Spatial ellipsoids can be created from a ellipsoid or SpatialPoints object.

Usage

1
2
3
4
5
## S4 method for signature 'ellipsoid'
spEllipsoid(x, proj4string = NA)

## S4 method for signature 'SpatialPoints'
spEllipsoid(x, key = NULL, value = NULL)

Arguments

x

ellipsoid or SpatialPoints* object.

proj4string

CRS object

key

a key representing a column name if x is a SpatialPointsDataFrame object

value

a value repsententing a column filter value, if x is a SpatialPointsDataFrame object

Value

SpatialPolygons

Author(s)

Emmanuel Blondel, emmanuel.blondel1@gmail.com

See Also

SpatialPolygons, ellipsoid

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#sample dataset
data(meuse)
coordinates(meuse) <- c("x","y")

#create a spatial ellipsoid
ell <- spEllipsoid(meuse)

#plot
plot(meuse)
plot(ell, add = TRUE, border = "red")

eblondel/sputils documentation built on May 15, 2019, 7:48 p.m.